From 21e37f7e035c34a026c29266a832c6bac9caf27b Mon Sep 17 00:00:00 2001 From: timeshifter Date: Thu, 9 Jul 2026 14:11:38 +0200 Subject: [PATCH] lto, codegen, abort, nightly, build-std --- .cargo/config.toml | 2 ++ .gitignore | 1 + Cargo.toml | 2 ++ benchmark.txt | 4 ++++ 4 files changed, 9 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 benchmark.txt diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..ddff440 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-C", "target-cpu=native"] diff --git a/.gitignore b/.gitignore index fe6df09..cd9710f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ measurements.txt flamegraph.svg perf.data +perf.data.old diff --git a/Cargo.toml b/Cargo.toml index d56df25..d649057 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,5 @@ path = "src/generate.rs" [profile.release] debug = true +lto = "fat" +codegen-units = 1 diff --git a/benchmark.txt b/benchmark.txt new file mode 100644 index 0000000..d1111e2 --- /dev/null +++ b/benchmark.txt @@ -0,0 +1,4 @@ +128 basic +110 lto, coden, abort +107 nightly, build-std +109 native cpu (doesn't seem to work)