ssvb / tinymembench

Simple benchmark for memory throughput and latency
MIT License
354 stars 96 forks source link

make some hard-coded values into arguments #23

Open letrout opened 5 years ago

letrout commented 5 years ago

I ran into a situation where testing a newer CPU had larger L3 than the hard-coded SIZE (32MB). Rather than simply change this value in the code, I made it an argument so it can be be varied at runtime. While I was in there I did the same with BLOCKSIZE, LATBENCH_COUNT, and latbench_size for additional runtime flexibility. The original hard-coded values are used as defaults.