Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Ruby 2.3.1) report.rb:14:in add_entry': wrong number of arguments (given 5, expected 6) (ArgumentError) from /lib/benchmark/ips/job.rb:345:in create_report' #14

Closed
jasonfb opened this issue Dec 5, 2017 · 2 comments

Comments

@jasonfb
Copy link
Contributor

jasonfb commented Dec 5, 2017

exception:

Calculating -------------------------------------
            #at 1000/Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-bigo-1.0.0/lib/benchmark/bigo/report.rb:14:in `add_entry': wrong number of arguments (given 5, expected 6) (ArgumentError)
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:345:in `create_report'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:283:in `block in run_benchmark'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:239:in `each'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:239:in `run_benchmark'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:193:in `block in run'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:192:in `times'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:192:in `run'
	from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-bigo-1.0.0/lib/benchmark/bigo.rb:37:in `bigo'
	from sample_benchmark_bigo.rb:3:in `<main>'

example in README crashes with

Ruby 2.3.1

my code is basically only the README example, with the require at the top: https://gist.github.com/jasonfb/e8f9c42ef8cdf909aa65c320522ca511

crashes at end when run:

https://gist.github.com/jasonfb/d97514b7275dd13685666332a1d61303

@jasonfb jasonfb changed the title (Ruby 2.3.1) report.rb:14:in add_entry': wrong number of arguments (given 5, expected 6) (ArgumentError) from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:345:in create_report' from /Users/jason/.rvm/gems/ruby-2.3.1/gems/benchmark-ips-2.7.2/lib/benchmark/ips/job.rb:283:in `block in run_benchmark (Ruby 2.3.1) report.rb:14:in add_entry': wrong number of arguments (given 5, expected 6) (ArgumentError) from /lib/benchmark/ips/job.rb:345:in create_report' Dec 5, 2017
@jasonfb
Copy link
Contributor Author

jasonfb commented Dec 5, 2017

the calling code appears to be coming from https://github.com/evanphx/benchmark-ips/blob/master/lib/benchmark/ips/job.rb#L346

@jasonfb
Copy link
Contributor Author

jasonfb commented Dec 6, 2017

fixed with #15

davy pushed a commit that referenced this issue Dec 7, 2017
fixes arity problem for issue #14
@davy davy closed this as completed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants