summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2020-04-22 09:49:13 +0900
committerGitHub <noreply@github.com>2020-04-22 09:49:13 +0900
commit17083011eed7d56981f2b227574527e4bf23eb65 (patch)
tree98c998d925a7e9c87c473eafe5e98dcf9600f69c /benchmark
parentad63ae6619d26488725e05d74f2bfc3ab185b0c3 (diff)
support builtin for Kernel#Float
# Iteration per second (i/s) | |compare-ruby|built-ruby| |:------------|-----------:|---------:| |float | 30.395M| 38.314M| | | -| 1.26x| |float_true | 3.833M| 27.322M| | | -| 7.13x| |float_false | 4.182M| 24.938M| | | -| 5.96x|
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3048 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/kernel_float.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/kernel_float.yml b/benchmark/kernel_float.yml
new file mode 100644
index 0000000000..215f6750fc
--- /dev/null
+++ b/benchmark/kernel_float.yml
@@ -0,0 +1,5 @@
+benchmark:
+ float: "Float(42)"
+ float_true: "Float(42, exception: true)"
+ float_false: "Float(42, exception: false)"
+loop_count: 10000