evanphx / benchmark-ips

Provides iteration per second benchmarking for Ruby
MIT License
1.72k stars 97 forks source link

`cannot load such file -- benchmark/ips/noop_suite` #116

Closed ioquatix closed 3 years ago

ioquatix commented 3 years ago
Failure/Error: require 'benchmark/ips'

LoadError:
  cannot load such file -- benchmark/ips/noop_suite
# /Users/samuel/.gem/ruby/3.0.0/gems/benchmark-ips-2.9.0/lib/benchmark/ips.rb:8:in `require'
# /Users/samuel/.gem/ruby/3.0.0/gems/benchmark-ips-2.9.0/lib/benchmark/ips.rb:8:in `<top (required)>'
# ./spec/db/benchmark_spec.rb:23:in `require'
# ./spec/db/benchmark_spec.rb:23:in `<top (required)>'

I'm not sure what's going on, but the latest release seems broken.

I'd suggest you change to use require_relative everywhere too: https://github.com/evanphx/benchmark-ips/blob/dea7eb1df656f40c2455a4d69ede8601ba82bf5f/lib/benchmark/ips.rb#L8

gem "benchmark-ips", "~> 2.8.0"

fixes the issue for me.

okeeblow commented 3 years ago

https://github.com/evanphx/benchmark-ips/pull/115

evanphx commented 3 years ago

2.9.1 is out with the fix, sorry about that!

ioquatix commented 3 years ago

Thanks!