Categories: None [Edit]

benchmark-swap

https://rubygems.org/gems/benchmark-swap
https://github.com/meinac/benchmark-swap
Write your alternative implementation next to the original one, with a _perf suffix on the name. Benchmark.swap runs your block twice, once with the original methods and once with the suffixed twins in their place, and compares the two. No need to lift the method out of its call chain first.

Total

Ranking: 23,466 of 198,702
Downloads: 71,059

Daily

Ranking: 4,670 of 198,646
Downloads: 1,299

Depended by

RankDownloadsName

Depends on

RankDownloadsName
62891,146,409benchmark-ips

Owners

#GravatarHandle
1iconmeinac
2icongitlab_rubygems