diff options
author | S.H <gamelinks007@gmail.com> | 2021-06-03 12:04:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 20:04:56 -0700 |
commit | 28b481938b5c8211aad53ba82fe4ddd978ffc00f (patch) | |
tree | 5e045ebad4b85544472d543af3f25f7c01e735cf /benchmark | |
parent | bc65cf1a920b715635fbd3e658c4abdebfb87e3b (diff) |
Implemented some NilClass method in Ruby code is faster [Feature #17054] (#3366)
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/nilclass.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/nilclass.yml b/benchmark/nilclass.yml new file mode 100644 index 0000000000..fba67a5f6a --- /dev/null +++ b/benchmark/nilclass.yml @@ -0,0 +1,6 @@ +benchmark: + to_i: | + nil.to_i + to_f: | + nil.to_f +loop_count: 100000 |