-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Runtime benchmarks infrastructure #7596
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
Conversation
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.
Otherwise, LGTM
bench-run/src/main/scala/Main.scala
Outdated
} | ||
} | ||
|
||
def printUsage(): Unit = { |
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.
Do we need to execute jmh:compile
first?
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.
I don't think it is necessary, at least I didn't do it and it worked. However, it might be necessary to run clean
or even rm -rf out
because sometimes the incremental compilation has a hard time figuring everything out...
bench-run/src/main/scala/Main.scala
Outdated
|
||
val warmup = if (intArgs.length > 0) intArgs(0).toInt else 20 | ||
val iterations = if (intArgs.length > 1) intArgs(1).toInt else 20 | ||
val forks = if (intArgs.length > 2) intArgs(2).toInt else 1 |
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.
Maybe define a local method:
def getIntArg(i: Int, default: Int): Int =
if (intArgs.length > i) intArgs(i).toInt else default
It is weird. I have signed the CLA about one month ago, but it seems like it was reset... I signed it again, so it should be fine now. |
The bot is flakey, sometimes it fails to properly execute the check. It is
fine.
…On Mon, 25 Nov 2019, 20:28 brunnerant, ***@***.***> wrote:
It is weird. I have signed the CLA about one month ago, but it seems like
it was reset... I signed it again, so it should be fine now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7596>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA32UHO66KWA6WO6LMXCZI3QVQRMJANCNFSM4JP6RXAQ>
.
|
@brunnerant We need a rebase and then we can merge. |
Sorry, I forgot to do that earlier. Now it should be ready to merge... |
One of the tests failed |
This pull requests adds the sub-project dotty-bench-run that allows to make runtime benchmarks.
It is uses jmh, as dotty-bench does. There is also support for taking inputs from a file, which is useful because sometimes the inputs cannot be specified by a
@Param
clause.This pull requests also adds a few benchmarks for the tuple related functions, which I have used for my semester project with @nicolasstucki .