ruby-changes:58362
From: Nobuyoshi <ko1@a...>
Date: Tue, 22 Oct 2019 22:52:23 +0900 (JST)
Subject: [ruby-changes:58362] 8390057d1e (master): Benchmark for [Feature #16155]
https://git.ruby-lang.org/ruby.git/commit/?id=8390057d1e From 8390057d1ee9acd67ac9f36dee59f500b1f1bc5f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 22 Oct 2019 22:49:41 +0900 Subject: Benchmark for [Feature #16155] diff --git a/benchmark/array_intersection.yml b/benchmark/array_intersection.yml new file mode 100644 index 0000000..2670532 --- /dev/null +++ b/benchmark/array_intersection.yml @@ -0,0 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/array_intersection.yml#L1 +prelude: | + small1 = [1, 2, 3] + small2 = [1, 2, 3, 4, 5] + small3 = [2, 3, 4, 5] + small4 = [2] + big1 = [1, 2, 3, 4] * 64 + big2 = [1, 2, 3] * 64 + big3 = [1, 2] * 64 + +benchmark: + small-&: small1 & small2 & small3 & small4 + small-intersection: small1.intersection(small2, small3, small4) + big-&: big1 & big2 & big3 + big-intersection: big1.intersection(big2, big3) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/