diff options
author | S.H <[email protected]> | 2020-04-22 09:49:13 +0900 |
---|---|---|
committer | <[email protected]> | 2020-04-22 09:49:13 +0900 |
commit | 17083011eed7d56981f2b227574527e4bf23eb65 () | |
tree | 98c998d925a7e9c87c473eafe5e98dcf9600f69c /kernel.rb | |
parent | ad63ae6619d26488725e05d74f2bfc3ab185b0c3 (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: Merged: https://.com/ruby/ruby/pull/3048 Merged-By: nobu <[email protected]>
-rw-r--r-- | kernel.rb | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -26,4 +26,28 @@ module Kernel def clone(freeze: nil) __builtin_rb_obj_clone2(freeze) end end |