Skip to content
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

Create a benchmarks module #166

Merged
merged 10 commits into from
Feb 1, 2024
Merged

Conversation

lppedd
Copy link
Contributor

@lppedd lppedd commented Jan 30, 2024

Closes: #165

@KvanTTT @mike-lischke @ftomassetti

You can run JVM benchmarks with:

gradlew :antlr-kotlin-benchmarks:jvmBenchmark

And you can run JS benchmarks by removing the @Ignore annotation from ManualMySQLBenchmarks, with:

gradlew :antlr-kotlin-benchmarks:jsTests

You can observe that the first warm up run is extremely slow in JS:

Warm up 1: 8575.3754 ms
Warm up 2: 742.1048 ms
Warm up 3: 603.8989 ms
...

Tho even on the JVM the first run is pretty slow.

Warm up 1: 2618.4108 ms
Warm up 2: 217.177499 ms
Warm up 3: 158.166601 ms
...

Use too much time, and will be replaced by
kotlinx-benchmarks at some point.
@ftomassetti
Copy link
Member

Thank you, this is very valuable. Could you add a description of this in the README?

@lppedd lppedd force-pushed the feat/benchmarks branch 2 times, most recently from e900998 to 2ad7206 Compare February 1, 2024 12:32
@lppedd
Copy link
Contributor Author

lppedd commented Feb 1, 2024

Could you add a description of this in the README?

@ftomassetti done!

@ftomassetti
Copy link
Member

Looks good to me. Thank you @lppedd and @mike-lischke for the discussion and providing the inspiration for this

@ftomassetti ftomassetti merged commit 4928049 into Strumenta:master Feb 1, 2024
6 checks passed
@lppedd lppedd deleted the feat/benchmarks branch February 1, 2024 13:08
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.

Add benchmarks
2 participants