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

TIL there is an o modifier doing the same thanks to @eregon #668

Merged
merged 1 commit into from
Mar 10, 2018

Conversation

PragTob
Copy link
Collaborator

@PragTob PragTob commented Mar 10, 2018

It's even a tiny bit faster it seems.

Memoization:
tobi@speedy ~/github/simplecov $ bundle exec ruby benchmarks/result.rb
Warming up --------------------------------------
generating a simplecov result
                        28.000  i/100ms
Calculating -------------------------------------
generating a simplecov result
                        282.997  (± 1.4%) i/s -      1.428k in   5.047055s

Modifier:
tobi@speedy ~/github/simplecov $ bundle exec ruby benchmarks/result.rb
Warming up --------------------------------------
generating a simplecov result
                        28.000  i/100ms
Calculating -------------------------------------
generating a simplecov result
                        289.115  (± 1.7%) i/s -      1.456k in   5.037437s

It's even a tiny bit faster it seems.

Memoization:
tobi@speedy ~/github/simplecov $ bundle exec ruby benchmarks/result.rb
Warming up --------------------------------------
generating a simplecov result
                        28.000  i/100ms
Calculating -------------------------------------
generating a simplecov result
                        282.997  (± 1.4%) i/s -      1.428k in   5.047055s

Modifier:
tobi@speedy ~/github/simplecov $ bundle exec ruby benchmarks/result.rb
Warming up --------------------------------------
generating a simplecov result
                        28.000  i/100ms
Calculating -------------------------------------
generating a simplecov result
                        289.115  (± 1.7%) i/s -      1.456k in   5.037437s
@PragTob PragTob merged commit fbd3c3e into master Mar 10, 2018
@PragTob PragTob deleted the even-faster-no_cov_line branch March 10, 2018 18:55
This was referenced Mar 15, 2018
This was referenced Mar 19, 2018
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

Successfully merging this pull request may close these issues.

1 participant