summaryrefslogtreecommitdiff
path: root/benchmark/nilclass.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/nilclass.yml')
-rw-r--r--benchmark/nilclass.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmark/nilclass.yml b/benchmark/nilclass.yml
new file mode 100644
index 0000000000..66234c4cdf
--- /dev/null
+++ b/benchmark/nilclass.yml
@@ -0,0 +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