sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Minitest::BenchSpec.bench
This is used to define a new benchmark method. You usually don't use this directly and is intended for those needing to write new performance curve fits (eg: you need a specific polynomial fit). See ::bench_performance_linear for an example of how to use this.
Edit
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-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"
# 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-for-pr
hub pull-request
# Celebrate!