-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Run benchmarks directly from sbt #2913
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
Changes from 1 commit
f6b54a9
11aef2c
d198cd0
f047d74
5054872
007e4fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,7 @@ out/ | |
| build/ | ||
| !out/.keep | ||
| testlogs/ | ||
| bench/result.csv | ||
|
|
||
| # Ignore build-file | ||
| .packages | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -828,7 +828,8 @@ object Build { | |
| dependsOn(`dotty-compiler`). | ||
| settings(commonNonBootstrappedSettings). | ||
| settings( | ||
| mainClass in (Jmh, run) := Some("dotty.tools.benchmarks.Bench") // custom main for jmh:run | ||
| mainClass in (Jmh, run) := Some("dotty.tools.benchmarks.Bench"), // custom main for jmh:run | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please print the entire command line that was used to launch the behcnmark vm?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @liufengyun do you know if that is possible without the jmh plugin?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the command runs, we'll have the output in the console, which shows the VM options: |
||
| javaOptions += "-DBENCH_CLASS_PATH=" + Attributed.data((fullClasspath in Compile).value).mkString("", ":", "") | ||
| ). | ||
| enablePlugins(JmhPlugin). | ||
| settings(packSettings). | ||
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this file, and there'll be no
result.csv, which is useless.