Skip to content

Fix benchmarks and add multiple mini benchmark tests #1690

New issue

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

Merged
merged 3 commits into from
Jan 11, 2017

Conversation

liufengyun
Copy link
Contributor

The benchmarks has been down due to some weird error. A single line change fix it: link

-  @Test def pickle_pickleOK = compileDir(testsDir, "pickling", testPickling)
+  @Test def pickle_pickleOK = compileFiles(testsDir + "pickling/", testPickling)

And I've added several mini tests which covers implicit search, exhaustivity check, tailrec, etc. We can just put any mini test to the folder bench/tests, it will be automatically tracked in the benchmarks.

@liufengyun
Copy link
Contributor Author

Review @felixmulder and @DarkDimius ?

@@ -74,11 +76,24 @@ object BenchTests extends OnlineRegressionReport {
def setup =
performance of "dotty" in {
measure.method("stdlib") in {
using(Gen.unit("test")) curve "stdlib" in { r => stdLib }
// maybe scalac curve later
using(Gen.unit("test")) curve "dotty" in { r => stdLib }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this curve called dotty now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DarkDimius The curve is to support multiple curves in a chart. Yes, I should keep it the same for stdlib and dotty-src for backward data compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DarkDimius the name for stdlib and dotty-src are now restored.

@odersky
Copy link
Contributor

odersky commented Dec 17, 2016

Status?

@liufengyun
Copy link
Contributor Author

@DarkDimius This is one is up to you to review, thanks :)

@DarkDimius
Copy link
Contributor

LGTM

@DarkDimius DarkDimius merged commit 8b44b6c into scala:master Jan 11, 2017
@liufengyun liufengyun deleted the bench branch January 11, 2017 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants