From edbd2479722fecef3adc647dfeaee8c09231f7c9 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Thu, 29 May 2025 16:08:39 -0400 Subject: [PATCH] Use `time.Stopwatch` in `core:bytes` benchmark This should result in a clearer idea of how fast the procedures are running, as the loop can run without going back and forth to the system for the time. --- tests/benchmark/bytes/benchmark_bytes.odin | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/benchmark/bytes/benchmark_bytes.odin b/tests/benchmark/bytes/benchmark_bytes.odin index 13ef8f9a5..ee3a91d64 100644 --- a/tests/benchmark/bytes/benchmark_bytes.odin +++ b/tests/benchmark/bytes/benchmark_bytes.odin @@ -54,14 +54,15 @@ run_trial_size :: proc(p: proc "contextless" ([]u8, byte) -> int, size: int, idx accumulator: int - for _ in 0..