summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2020-03-17 19:37:07 +0900
committerGitHub <noreply@github.com>2020-03-17 19:37:07 +0900
commit290d608637e37323bb6eeda1b1466519f16308a5 (patch)
treea15dfc4dd8299b936999e8ddc3c5f70729858a71 /benchmark
parentd514ba8e17106c6d159c3902ac5456d6269731f8 (diff)
support builtin for Kernel#clone
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2954 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/kernel_clone.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/kernel_clone.yml b/benchmark/kernel_clone.yml
new file mode 100644
index 0000000000..069b23abcd
--- /dev/null
+++ b/benchmark/kernel_clone.yml
@@ -0,0 +1,6 @@
+prelude: "object = Object.new"
+benchmark:
+ clone: "object.clone"
+ clone_true: "object.clone(freeze: true)"
+ clone_false: "object.clone(freeze: false)"
+loop_count: 10000