chore: use constants in output

Co-authored-by: blueloveTH <28104173+blueloveTH@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-04 05:03:03 +00:00
parent 7e510f91f3
commit e53373e942

View File

@ -48,9 +48,9 @@ static uint64_t bench_char(void) {
int main(void) {
uint64_t int_avg = bench_int();
uint64_t char_avg = bench_char();
printf("int[1000] average traversal (ns): %llu\n",
printf("int[%d] average traversal (ns): %llu\n", ARRAY_SIZE,
(unsigned long long)int_avg);
printf("char[1000] average traversal (ns): %llu\n",
printf("char[%d] average traversal (ns): %llu\n", ARRAY_SIZE,
(unsigned long long)char_avg);
return 0;
}