Skip to content

Commit ebbc5fe

Browse files
authored
Change benchmark template to be more impartial.
By defining methods `fast` and `slow`, we lock the benchmark into whatever the results were on a particular Ruby at a particular time. Since the benchmarks are run on multiple versions of Ruby and on multiple Ruby interpreters, which variant is faster is subject to change.
1 parent e7dcbe8 commit ebbc5fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Use [benchmark-ips](https://github.com/evanphx/benchmark-ips) (2.0+).
2626
```ruby
2727
require "benchmark/ips"
2828

29-
def fast
29+
def a
3030
end
3131

32-
def slow
32+
def b
3333
end
3434

3535
Benchmark.ips do |x|

0 commit comments

Comments
 (0)