Created
December 10, 2017 14:45
-
-
Save ackratos/ea47f71cade651efb5af50e6548fa2cc to your computer and use it in GitHub Desktop.
scala performance contribution tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could you please post your method for generating those benchmark results. The error margins appears too high to draw conclusions, so perhaps you ran with insufficient warmup, iterations etc? Did you build the library with the optimizer enabled? (sbt setupPublishCore dist/mkPack will do this.) | |
Microbenchmarks should only call the code under test, so please remove the assertions (they are still run in test/junit/scala/util/matching/RegexTest.scala, the source of the examples you are benchmarking. | |
What was the primary motivation to create a custom benchmark runner for this test? I tend to enable profilers interactively jmh:run -prof gc ... in the SBT shell. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
collection-strawman https://github.com/scala/collection-strawman