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)