From 0edae7ca021792ad9b934eeb653d212058400fb5 Mon Sep 17 00:00:00 2001 From: "codspeed[bot]" <117304815+codspeed[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2026 09:22:14 +0900 Subject: [PATCH] Pin the hash seed in the execution benchmark harness (#9235) Co-authored-by: CodSpeed Bot --- benches/execution.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benches/execution.rs b/benches/execution.rs index c0c783f24..0441a006e 100644 --- a/benches/execution.rs +++ b/benches/execution.rs @@ -44,6 +44,9 @@ fn bench_rustpython_code(b: &mut Bencher<'_>, name: &str, source: &str) { settings.path_list.push("Lib/".to_string()); settings.write_bytecode = false; settings.user_site_directory = false; + // Pin the str/bytes hash secret so dict/set probe sequences (and thus + // timings) are reproducible across benchmark runs. + settings.hash_seed = Some(0); let builder = Interpreter::builder(settings); let defs = rustpython_stdlib::stdlib_module_defs(&builder.ctx); builder.add_native_modules(&defs).build().enter(|vm| {