We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Three concerns:
It stills require a deeper research on which benchmark framework is best, and easy-to-use of course.
The text was updated successfully, but these errors were encountered:
inline benchmarking provided by ScalaMeter (import scalameter for benchmarking) is quite convenient:
ScalaMeter
test("compare performance by large test set") { val inputs = 10 to 100000 by 1000 val raw_time = standardConfig measure { inputs.foreach(_.totient) } val improved_time = standardConfig measure { inputs.foreach(_.totient_improve) } println(s"totient: ${raw_time}, totient_improved: ${improved_time}") println(s"speedup: ${raw_time.value / improved_time.value}") }
Sorry, something went wrong.
ihac
No branches or pull requests
Three concerns:
It stills require a deeper research on which benchmark framework is best, and easy-to-use of course.
The text was updated successfully, but these errors were encountered: