ruby-changes:54519
From: mrkn <ko1@a...>
Date: Sun, 6 Jan 2019 09:46:41 +0900 (JST)
Subject: [ruby-changes:54519] mrkn:r66733 (trunk): benchmark/range_last.yml: add benchmark cases
mrkn 2019-01-06 09:46:35 +0900 (Sun, 06 Jan 2019) New Revision: 66733 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66733 Log: benchmark/range_last.yml: add benchmark cases Modified files: trunk/benchmark/range_last.yml Index: benchmark/range_last.yml =================================================================== --- benchmark/range_last.yml (revision 66732) +++ benchmark/range_last.yml (revision 66733) @@ -1,4 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/range_last.yml#L1 prelude: | - range = 1..1_000_000 + range = (1..1_000_000) benchmark: - range_last: range.last(1000) + - (1..1_000_000).last(100) + - (1..1_000_000).last(1000) + - (1..1_000_000).last(10000) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/