Shopify / yjit-bench

Set of benchmarks for the YJIT CRuby JIT compiler and other Ruby implementations.
MIT License
87 stars 22 forks source link

Document how to use the perf(1) harness #315

Closed XrXr closed 3 months ago

XrXr commented 3 months ago

The other day we lost ~20 minutes due to this race condition, so I thought I'd document it and also include a general guide.

maximecb commented 3 months ago

The race is bad, but yes, I recommend running a not-too-small number of iterations to minimize the noise when profiling anyway.

The perf harness could warn or force a higher minimum number of iterations to avoid the race condition?