From 14ab72ac547ec43977d347bcf38496029507b7d7 Mon Sep 17 00:00:00 2001 From: Ryan Berger Date: Mon, 9 Feb 2026 23:07:29 -0800 Subject: [PATCH 1/2] fix: run benchmark with RUSTFLAGS to guarantee benchmark correctness --- benchmarks/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/run.sh b/benchmarks/run.sh index b21b301..b8f2b06 100755 --- a/benchmarks/run.sh +++ b/benchmarks/run.sh @@ -25,7 +25,7 @@ function geojson_area() { } # Do the calculations -time cargo run --features ring_data --release -- \ +time RUSTFLAGS='-Ctarget-cpu=native' cargo run --features ring_data --release -- \ compute "$PROJECT_ROOT/benchmarks/cardiff.bt" \ --scale 100 \ --rings-per-km 3 \ From cb3398a1b862553e33d5ef8ecc642a2579523283 Mon Sep 17 00:00:00 2001 From: Ryan Berger Date: Tue, 10 Feb 2026 19:08:38 -0800 Subject: [PATCH 2/2] fix: issues with `time` not interpreting env var --- benchmarks/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/run.sh b/benchmarks/run.sh index b8f2b06..971e653 100755 --- a/benchmarks/run.sh +++ b/benchmarks/run.sh @@ -25,7 +25,8 @@ function geojson_area() { } # Do the calculations -time RUSTFLAGS='-Ctarget-cpu=native' cargo run --features ring_data --release -- \ +export RUSTFLAGS='-Ctarget-cpu=native' +time cargo run --features ring_data --release -- \ compute "$PROJECT_ROOT/benchmarks/cardiff.bt" \ --scale 100 \ --rings-per-km 3 \