From f895e96bde44b93b31a4ec83e0b875f16e1a400e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 15 Jun 2026 14:17:11 +0100 Subject: [PATCH] Add `benchmark` flag for x86 tests to just test that --- core/rexcode/x86/tests/test.odin | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/rexcode/x86/tests/test.odin b/core/rexcode/x86/tests/test.odin index c97e6e9da..f5c76623c 100644 --- a/core/rexcode/x86/tests/test.odin +++ b/core/rexcode/x86/tests/test.odin @@ -10,6 +10,7 @@ import "core:slice" import "core:strings" import "core:mem/virtual" import "core:math" +import "core:os" // SIMD vector type aliases V4F32 :: #simd [4]f32 @@ -3136,6 +3137,11 @@ print_summary :: proc() { // ============================================================================= main :: proc() { + if len(os.args) >= 2 && os.args[1] == "benchmark" { + log_header("PERFORMANCE BENCHMARKS") + run_benchmarks() + return + } fmt.printf("\n%s======================================================================%s\n", BOLD, RESET) fmt.printf("%s x64 ENCODER/DECODER TEST SUITE %s\n", BOLD, RESET) fmt.printf("%s======================================================================%s\n", BOLD, RESET)