Skip to content

Commit

Permalink
update bench
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Sep 9, 2024
1 parent 9cf6679 commit 55391a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/benchmark/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int main(void) {

// get buffer sizes large enough that all the simd code paths get hit hard, but
// also measure the smaller buffer paths since they often can't be optimized as thoroughly.
size_t buffer_sizes[] = {8, 16, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536};
size_t buffer_sizes[] = {8, 16, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 524288};
size_t buffer_sizes_len = AWS_ARRAY_SIZE(buffer_sizes);

// warm it up to factor out the cpuid checks:
Expand All @@ -115,9 +115,10 @@ int main(void) {
aws_high_res_clock_get_ticks(&end_time);
fprintf(
stdout,
"buffer size %zu (bytes), latency: %" PRIu64 " ns\n",
"buffer size %zu (bytes), latency: %" PRIu64 " ns throughput: %d GB/s\n",
buffer_sizes[k],
end_time - start_time);
end_time - start_time,
(buffer_sizes[k] * 1000000000.0 / 1024.0 / 1024.0 / 1024.0) / (end_time - start_time));
aws_byte_buf_clean_up(&x_bytes);
}
fprintf(stdout, "\n");
Expand Down

0 comments on commit 55391a2

Please sign in to comment.