@@ -42,11 +42,11 @@ def capture_block_and_call_n_times(n, &block)
4242example context.
4343
4444rspec-core has already performed [many related benchmarks about
45- this](https://github.com/rspec/rspec-core /tree/main/benchmarks):
45+ this](https://github.com/rspec/rspec/tree/main/rspec-core /benchmarks):
4646
47- - [call vs yield](https://github.com/rspec/rspec-core /blob/main/benchmarks/call_v_yield.rb)
48- - [capture block vs yield](https://github.com/rspec/rspec-core /blob/main/benchmarks/capture_block_vs_yield.rb)
49- - [flat map vs inject](https://github.com/rspec/rspec-core /blob/main/benchmarks/flat_map_vs_inject.rb)
47+ - [call vs yield](https://github.com/rspec/rspec/blob/main/rspec-core /benchmarks/call_v_yield.rb)
48+ - [capture block vs yield](https://github.com/rspec/rspec/blob/main/rspec-core /benchmarks/capture_block_vs_yield.rb)
49+ - [flat map vs inject](https://github.com/rspec/rspec/blob/main/rspec-core /benchmarks/flat_map_vs_inject.rb)
5050
5151The results are very interesting:
5252
@@ -64,7 +64,7 @@ def capture_block_and_call_n_times(n, &block)
6464> See also `flat_map_vs_inject.rb`, which appears to contradict these
6565> results a little bit.
6666>
67- > -- https://github.com/rspec/rspec-core /blob/main/benchmarks/capture_block_vs_yield.rb#L83-L95
67+ > -- https://github.com/rspec/rspec/blob/main/rspec-core /benchmarks/capture_block_vs_yield.rb#L83-L95
6868
6969and
7070
@@ -75,7 +75,7 @@ def capture_block_and_call_n_times(n, &block)
7575> version remains faster in my benchmarks here no matter how small
7676> I shrink the `words` array. I'm not sure why!
7777>
78- > -- https://github.com/rspec/rspec-core /blob/main/benchmarks/flat_map_vs_inject.rb#L37-L42
78+ > -- https://github.com/rspec/rspec/blob/main/rspec-core /benchmarks/flat_map_vs_inject.rb#L37-L42
7979
8080This seems to show that the error margin is enough to negate any benefit from
8181capturing the block initially. It also shows that not capturing the block is
0 commit comments