Skip to content

Conversation

@naitoh
Copy link
Contributor

@naitoh naitoh commented Sep 15, 2025

Benchmark

                         before       after  before(YJIT)  after(YJIT)
                 sax     1.415k      2.297k        1.755k       2.958k i/s -     100.000 times in 0.070687s 0.043539s 0.056966s 0.033810s

Comparison:
                              sax
         after(YJIT):      2957.7 i/s
               after:      2296.8 i/s - 1.29x  slower
        before(YJIT):      1755.4 i/s - 1.68x  slower
              before:      1414.7 i/s - 2.09x  slower
  • YJIT=ON : 1.68x faster
  • YJIT=OFF : 1.62x faster

@naitoh naitoh requested a review from kou September 15, 2025 21:50
@naitoh naitoh force-pushed the fix_get_namespace_performance_sax branch from 5defaea to e41b6b0 Compare September 16, 2025 09:59
@naitoh naitoh requested a review from kou September 16, 2025 10:03
## Benchmark
```
                         before       after  before(YJIT)  after(YJIT)
                 sax     1.415k      2.297k        1.755k       2.958k i/s -     100.000 times in 0.070687s 0.043539s 0.056966s 0.033810s

Comparison:
                              sax
         after(YJIT):      2957.7 i/s
               after:      2296.8 i/s - 1.29x  slower
        before(YJIT):      1755.4 i/s - 1.68x  slower
              before:      1414.7 i/s - 2.09x  slower
```

- YJIT=ON : 1.68x faster
- YJIT=OFF : 1.62x faster
@naitoh naitoh force-pushed the fix_get_namespace_performance_sax branch from e41b6b0 to 3369f96 Compare September 17, 2025 01:07
@naitoh naitoh requested a review from kou September 17, 2025 01:12
@kou kou merged commit fd7735d into ruby:master Sep 17, 2025
66 of 67 checks passed
@naitoh naitoh deleted the fix_get_namespace_performance_sax branch September 17, 2025 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants