From e340eb2106544dffe909104df1ff61236f70f280 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 22 Mar 2023 23:07:26 +0900 Subject: core_assertions.rb: Fix backward compatibility with pre 2.7 --- tool/lib/core_assertions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/lib') diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 39094fb66c..52c2c6b388 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -746,7 +746,7 @@ eom def assert_linear_performance(seq, rehearsal: nil, pre: ->(n) {n}) first = seq.first *arg = pre.call(first) - times = (0..(rehearsal || (2 * first))).filter_map do + times = (0..(rehearsal || (2 * first))).map do st = Process.clock_gettime(Process::CLOCK_MONOTONIC) yield(*arg) t = (Process.clock_gettime(Process::CLOCK_MONOTONIC) - st) -- cgit v1.2.1