-
- Downloads
Merge branch 'benchmark-suite' into 'master'
Basic RSpec/benchmark-ips powered benchmark suite Corresponding issue: #2909, see the commit messages for more details. A few things to note: 1. The current use of `subject` isn't exactly easy on the eyes due to them having to return a Proc, I'm not sure yet how (and if) we can work around this. 2. The maximum amount of iterations in the current `User.by_login` benchmark is arbitrary, we might have to adjust it once said method's performance has been improved. 3. Benchmarks currently take 2 seconds to warm up and 5 seconds to run (benchmark-ips defaults). 4. The custom RSpec matcher file (`benchmark_matchers.rb`) is a bit messy, any feedback on this would be appreciated Any comments/feedback on this would be greatly appreciated. See merge request !1503
No related branches found
No related tags found
Showing
- .gitlab-ci.yml 8 additions, 0 deletions.gitlab-ci.yml
- doc/development/README.md 1 addition, 0 deletionsdoc/development/README.md
- doc/development/benchmarking.md 69 additions, 0 deletionsdoc/development/benchmarking.md
- lib/tasks/spec.rake 10 additions, 1 deletionlib/tasks/spec.rake
- spec/benchmarks/models/user_spec.rb 40 additions, 0 deletionsspec/benchmarks/models/user_spec.rb
- spec/spec_helper.rb 2 additions, 1 deletionspec/spec_helper.rb
- spec/support/matchers/benchmark_matchers.rb 59 additions, 0 deletionsspec/support/matchers/benchmark_matchers.rb
- spec/support/setup_builds_storage.rb 4 additions, 2 deletionsspec/support/setup_builds_storage.rb
doc/development/benchmarking.md
0 → 100644
spec/benchmarks/models/user_spec.rb
0 → 100644
spec/support/matchers/benchmark_matchers.rb
0 → 100644
Please register or sign in to comment