aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-02-20 04:11:19 +0900
committerGitHub <noreply@github.com>2021-02-19 11:11:19 -0800
commitefd19badf43f4f1f24d5aec8a28e94a6e1e47b5b (patch)
treed0f1b01082418d2434d5380cbb427bbccf095b6c /benchmark
parent837e77e0202e96060498794ff97a097e5440d148 (diff)
downloadruby-efd19badf43f4f1f24d5aec8a28e94a6e1e47b5b.tar.gz
Improve performance some Numeric methods [Feature #17632] (#4190)
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/numeric_methods.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmark/numeric_methods.yml b/benchmark/numeric_methods.yml
new file mode 100644
index 0000000000..433c2268a3
--- /dev/null
+++ b/benchmark/numeric_methods.yml
@@ -0,0 +1,13 @@
+prelude: |
+ int = 42
+ flo = 4.2
+benchmark:
+ real?: |
+ int.real?
+ integer?: |
+ flo.integer?
+ finite?: |
+ int.finite?
+ infinite?: |
+ int.infinite?
+loop_count: 20000000