aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-06-03 12:04:56 +0900
committerGitHub <noreply@github.com>2021-06-02 20:04:56 -0700
commit28b481938b5c8211aad53ba82fe4ddd978ffc00f (patch)
tree5e045ebad4b85544472d543af3f25f7c01e735cf /benchmark
parentbc65cf1a920b715635fbd3e658c4abdebfb87e3b (diff)
downloadruby-28b481938b5c8211aad53ba82fe4ddd978ffc00f.tar.gz
Implemented some NilClass method in Ruby code is faster [Feature #17054] (#3366)
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/nilclass.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/nilclass.yml b/benchmark/nilclass.yml
new file mode 100644
index 0000000000..fba67a5f6a
--- /dev/null
+++ b/benchmark/nilclass.yml
@@ -0,0 +1,6 @@
+benchmark:
+ to_i: |
+ nil.to_i
+ to_f: |
+ nil.to_f
+loop_count: 100000