diff options
| author | Benoit Daloze <eregontp@gmail.com> | 2024-02-14 13:43:32 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-14 15:48:33 +0000 |
| commit | c2d8d6eba6a1c9e51c2f2ae136e92468c6841472 (patch) | |
| tree | 2d84381667c743a0dc18ccf8df4675e3e958b29a /test/ruby/test_lambda.rb | |
| parent | 1b2708b123038802740e58672e459fb6b575354c (diff) | |
Initialize the Prism::Source directly with all 3 fields for the C extension
* Faster that way:
$ ruby -Ilib -rprism -rbenchmark/ips -e 'Benchmark.ips { |x| x.report("parse") { Prism.parse("1 + 2") } }'
195.722k (± 0.5%) i/s
rb_iv_set():
179.609k (± 0.5%) i/s
rb_funcall():
190.030k (± 0.3%) i/s
before this PR:
183.319k (± 0.4%) i/s
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions
