bazhenov / tango

Rust microbenchmarking harness based on paired-testing methodology
MIT License
72 stars 1 forks source link

Adds stack frame randomized offsets. #23

Closed FilipAndersson245 closed 6 months ago

FilipAndersson245 commented 6 months ago

Based on the talk by Emery Berger. adding random offsets to the stack should help reduce effect of layout. https://github.com/bazhenov/tango/issues/21

FilipAndersson245 commented 6 months ago

A bit different then the previous PR, as it now only does the randomization on samples, and not individual iterations, this is probably fine, as the overhead would have maybe affected the result. A little random is better then no random.

Off topic question: I see there is a lot of changes in dev, when do you expect to get a new version up, I have started to try a rewrite to the dev API for our benches, but thanks to cargo publish rules, we cannot include git dependencies.

bazhenov commented 6 months ago

Thank you very much. This should work.