summaryrefslogtreecommitdiff
path: root/benchmark/nilclass.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/nilclass.yml')
-rw-r--r--benchmark/nilclass.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark/nilclass.yml b/benchmark/nilclass.yml
index fba67a5f6a..66234c4cdf 100644
--- a/benchmark/nilclass.yml
+++ b/benchmark/nilclass.yml
@@ -1,6 +1,16 @@
+prelude: |
+ def a = nil
benchmark:
+ rationalize:
+ nil.rationalize
+ to_c: |
+ nil.to_c
to_i: |
nil.to_i
to_f: |
nil.to_f
+ to_r: |
+ nil.to_r
+ splat: |
+ a(*nil)
loop_count: 100000