sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Minitest::BenchSpec.bench_performance_linear
Create a benchmark that verifies that the performance is linear.
describe "my class Bench" do
bench_performance_linear "fast_algorithm", 0.9999 do |n|
@obj.fast_algorithm(n)
end
endEdit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/minitest-5.18.1/lib/minitest/benchmark.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Minitest--BenchSpec-bench_performance_linear-for-pr
# Commit to gitgit add app/server/ruby/vendor/minitest-5.18.1/lib/minitest/benchmark.rbgit commit -m "better docs for Minitest::BenchSpec.bench_performance_linear"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Minitest--BenchSpec-bench_performance_linear-for-pr
hub pull-request
# Celebrate!