summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-06-20 14:55:09 -0700
committerGitHub <noreply@github.com>2020-06-20 14:55:09 -0700
commit95b0fed3714b87dcb40a16f33d9e3160f9945e38 (patch)
tree100cb67619729fa2b5c306a138599eef6fb11377 /benchmark
parentb68ddcf30ce1dc2788d3bd3d10169726feada1f2 (diff)
Make Integer#zero? a separated method and builtin (#3226)
A prerequisite to fix https://bugs.ruby-lang.org/issues/15589 with JIT. This commit alone doesn't make a significant difference yet, but I thought this commit should be committed independently. This method override was discussed in [Misc #16961].
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/num_zero_p.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/num_zero_p.yml b/benchmark/num_zero_p.yml
new file mode 100644
index 0000000000..2195963433
--- /dev/null
+++ b/benchmark/num_zero_p.yml
@@ -0,0 +1,8 @@
+benchmark:
+ - 0.zero?
+ - 1.zero?
+ - 0r.zero?
+ - 1r.zero?
+ - 0i.zero?
+ - 1i.zero?
+loop_count: 50000000