Shopify / yjit-bench

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

Make -Iharness optional #249

Closed k0kubun closed 1 year ago

k0kubun commented 1 year ago

You need -Iharness* to run a single benchmark file, but in many cases I just want to use the default -Iharness. This PR lets benchmark files use harness/harness.rb by default and make -I optional while still allowing you to change it with -I.

This PR adds a script called harness/loader.rb, which adds harness/ as a load path with the lowest priority and requires harness. -I load path takes precedence, so it can overwrite what's loaded there.