diff options
author | Sam James <sam@gentoo.org> | 2023-06-13 22:49:57 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-06-15 22:12:14 +0100 |
commit | 0bb6c7f95645b618832dea16ef2d1ecdfb5ad0ed (patch) | |
tree | 04b7696c485caf1d48114e1ad7236ca27ebdca50 /dev-util/rustup | |
parent | profiles: add masks for sys-apps/musl-locales (diff) | |
download | gentoo-0bb6c7f95645b618832dea16ef2d1ecdfb5ad0ed.tar.gz gentoo-0bb6c7f95645b618832dea16ef2d1ecdfb5ad0ed.tar.bz2 gentoo-0bb6c7f95645b618832dea16ef2d1ecdfb5ad0ed.zip |
ruby-ng.eclass: optimize: use pattern for old ruby impls
Not much improvement on a grand scale, but for dev-ruby/sinatra at least, we get:
```
$ pk pkg source $(pkg) --repo ~/g/ --bench 5s # before
dev-ruby/sinatra-3.0.5::/home/sam/g/: mean: 76.25ms, min: 59.23ms, max: 83.674ms, σ = 4.247ms, N = 66
dev-ruby/sinatra-3.0.5-r1::/home/sam/g/: mean: 77.465ms, min: 61.782ms, max: 85.127ms, σ = 3.592ms, N = 65
dev-ruby/sinatra-3.0.6::/home/sam/g/: mean: 80.192ms, min: 60.922ms, max: 84.951ms, σ = 3.899ms, N = 63
dev-ruby/sinatra-2.2.3::/home/sam/g/: mean: 80.389ms, min: 56.818ms, max: 86.915ms, σ = 4.508ms, N = 63
$ pk pkg source $(pkg) --repo ~/g/ --bench 5s # after
dev-ruby/sinatra-3.0.6::/home/sam/g/: mean: 72.761ms, min: 58.627ms, max: 76.161ms, σ = 3.276ms, N = 69
dev-ruby/sinatra-3.0.5-r1::/home/sam/g/: mean: 72.967ms, min: 60.127ms, max: 76.75ms, σ = 3.176ms, N = 69
dev-ruby/sinatra-3.0.5::/home/sam/g/: mean: 69.004ms, min: 58.344ms, max: 73.661ms, σ = 3.3ms, N = 73
dev-ruby/sinatra-2.2.3::/home/sam/g/: mean: 71.061ms, min: 55.144ms, max: 74.563ms, σ = 3.848ms, N = 71
```
A tiny, but seemingly consistent improvement.
Thanks to mgorny for the idea.
Bug: https://bugs.gentoo.org/908465
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/rustup')
0 files changed, 0 insertions, 0 deletions