From ebbc5fe7204c26646c93c1da77798b818506dbcc Mon Sep 17 00:00:00 2001 From: Kevin Menard Date: Sat, 5 Nov 2022 22:52:43 -0400 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f6d3362..ac4ac34 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,10 @@ Use [benchmark-ips](https://github.com/evanphx/benchmark-ips) (2.0+). ```ruby require "benchmark/ips" -def fast +def a end -def slow +def b end Benchmark.ips do |x|