-
Similar to how [Performance/MapMethodChain](https://github.com/rubocop/rubocop-performance/blob/master/lib/rubocop/cop/performance/map_method_chain.rb) combines chained `map` calls, this cop would com…
-
`Benchmark.ips` always prints its result to `STDOUT` in a nicely formatted table:
```crystal
Benchmark.ips do |b|
b.report("foo") { Array.new(1000, 0) }
b.report("bar") { Array.new(5000, 0) …
-
I was trying out truffleruby with a small gem to see how it would perform against MRI : https://gitlab.com/gitlab-org/gitlab_kramdown/blob/improve-benchmark/benchmark/benchmark.rb and one thing that c…
-
I wonder if this would make a difference in these benchmarks:
> If you are comparing multiple implementations of a piece of code you may want to benchmark them in separate invocations of Ruby so th…
-
With #5522 merged, the reports from `Benchmark.ips` look like this:
```
one 1.33M (753.32ns) (± 7.90%) 624 B/op 104.55× slower
two 3.62M (276.15ns) (± 2.50%) 209 B/op 38.33× slower
th…
-
```ruby
# bad
some_method(foo, **options.merge(bar: 1))
# good
some_method(foo, **options, bar: 1)
```
I found (grep by `\*\*\w+\.merge` regexp) 12 such offences in the `rails/rails` codebas…
-
## Is your feature request related to a problem? Please describe.
Currently, the `Rails/EagerEvaluationLogMessage` cop, when enabled manually, will only report offenses when `Rails.logger.debug` re…
Uaitt updated
3 weeks ago
-
I tried running `examples/torch_ddp_benchmark` on kubernetes but the tasks hangs with the following error until throwing an NCCL timeout. It might be related to this [issue](https://github.com/pyt…
-
Now that we cleaned up the compilation, I thought it would be interesting to compare the `.po` / `.mo` performance.
### Script
https://github.com/elixir-gettext/gettext/blob/846cac137f7764101d734f…
-
When I'm writing benchmarks, I almost always want to compare against an existing result. [benchmark-ips](https://github.com/evanphx/benchmark-ips) supports this with:
```
Benchmark.ips do |x|
#…