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.
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 useharness/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 addsharness/
as a load path with the lowest priority and requiresharness
.-I
load path takes precedence, so it can overwrite what's loaded there.