app-benchmarks/clang-torture (headspace)

Search

Install

Install this package:

emerge -a app-benchmarks/clang-torture

Package Information

Description:
Intentionally useless C++ compiler torture/benchmark that generates GiBs of real C++ (templates, constexpr/consteval, concepts, overload resolution, optimizer IR) and builds it with Clang 22 -O3 -flto=full. The resulting executable simply returns 0. The purpose is to make compilation extremely expensive; workload size is selected explicitly via USE flags (4GiB .. 256GiB, default die) to avoid accidental resource exhaustion.
Homepage:
https://codeberg.org/kelseythedreamer/headspace-repo
License:
BSD-2

Versions

Version EAPI Keywords Slot
1.0.0 8 ~amd64 0

Metadata

Description

Maintainers

Upstream

Raw Metadata XML
<pkgmetadata>
	<maintainer type="person">
		<email>kelseythedreamer@proton.me</email>
		<name>kelseythedreamer</name>
	</maintainer>
	<longdescription>
		Intentionally useless C++ compiler torture/benchmark that generates
		GiBs of real C++ (templates, constexpr/consteval, concepts, overload
		resolution, optimizer IR) and builds it with Clang 22 -O3 -flto=full.
		The resulting executable simply returns 0. The purpose is to make
		compilation extremely expensive; workload size is selected explicitly
		via USE flags (4GiB .. 256GiB, default die) to avoid accidental
		resource exhaustion.
	</longdescription>
	<use>
		<flag name="die">Default-enabled guard that forces the ebuild to die unless exactly one workload size is selected. No workload by default.</flag>
		<flag name="4GiB">Generate and build 4 GiB of C++ torture source (TARGET_GIB=4)</flag>
		<flag name="8GiB">Generate and build 8 GiB of C++ torture source (TARGET_GIB=8)</flag>
		<flag name="16GiB">Generate and build 16 GiB of C++ torture source (TARGET_GIB=16)</flag>
		<flag name="32GiB">Generate and build 32 GiB of C++ torture source (TARGET_GIB=32)</flag>
		<flag name="64GiB">Generate and build 64 GiB of C++ torture source (TARGET_GIB=64)</flag>
		<flag name="128GiB">Generate and build 128 GiB of C++ torture source (TARGET_GIB=128)</flag>
		<flag name="256GiB">Generate and build 256 GiB of C++ torture source (TARGET_GIB=256) — absolute maximum for this revision</flag>
	</use>
	<upstream>
		<remote-id type="codeberg">kelseythedreamer/headspace-repo</remote-id>
	</upstream>
</pkgmetadata>

Lint Warnings

USE Flags

Manage flags for this package: euse -i <flag> -p app-benchmarks/clang-torture | euse -E <flag> -p app-benchmarks/clang-torture | euse -D <flag> -p app-benchmarks/clang-torture

Flag Description 1.0.0
128GiB Generate and build 128 GiB of C++ torture source (TARGET_GIB=128) ✓
16GiB Generate and build 16 GiB of C++ torture source (TARGET_GIB=16) ✓
256GiB Generate and build 256 GiB of C++ torture source (TARGET_GIB=256) — absolute maximum for this revision ✓
32GiB Generate and build 32 GiB of C++ torture source (TARGET_GIB=32) ✓
4GiB Generate and build 4 GiB of C++ torture source (TARGET_GIB=4) ✓
64GiB Generate and build 64 GiB of C++ torture source (TARGET_GIB=64) ✓
8GiB Generate and build 8 GiB of C++ torture source (TARGET_GIB=8) ✓
die Default-enabled guard that forces the ebuild to die unless exactly one workload size is selected. No workload by default. ⊕

Files

Manifest

Type File Size Versions
Unmatched Entries
Type File Size
AUX clang-torture-1.0.0.ebuild 3189 bytes
MISC files/clang-torture-1.0.0.tar.gz 9777 bytes