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

#4752 Start adding JMH benchmarks #4757

Merged
merged 1 commit into from
Aug 31, 2017
Merged

Conversation

original-brownbear
Copy link
Contributor

First step towards JMH benchmarks as discussed in #4752

  • Added basic JMH bootstrap
  • Ported BenchArrayCopy to JMH

The output looks like this:

# Run complete. Total time: 00:01:32

Benchmark                             Mode  Cnt          Score         Error   Units
ArrayCopyBenchmark.benchSystemCopy0  thrpt   10         54.219 ±       2.056  ops/ns
ArrayCopyBenchmark.benchSystemCopy1  thrpt   10          0.338 ±       0.005  ops/ns
ArrayCopyBenchmark.benchSystemCopy2  thrpt   10          0.326 ±       0.010  ops/ns
ArrayCopyBenchmark.benchSystemCopy3  thrpt   10          0.308 ±       0.005  ops/ns
ArrayCopyBenchmark.benchSystemCopy4  thrpt   10          0.295 ±       0.009  ops/ns
ArrayCopyBenchmark.benchSystemCopy5  thrpt   10          0.205 ±       0.009  ops/ns
ArrayCopyBenchmark.benchUtilsCopy0   thrpt   10  341532540.079 ± 9535315.085  ops/ns
ArrayCopyBenchmark.benchUtilsCopy1   thrpt   10          3.179 ±       0.110  ops/ns
ArrayCopyBenchmark.benchUtilsCopy2   thrpt   10          0.854 ±       0.015  ops/ns
ArrayCopyBenchmark.benchUtilsCopy3   thrpt   10          0.532 ±       0.055  ops/ns
ArrayCopyBenchmark.benchUtilsCopy4   thrpt   10          0.288 ±       0.013  ops/ns

Usage would be:

$ cd bench 
$ mvn clean install
$ java -jar target/jruby-benchmark.jar

@original-brownbear
Copy link
Contributor Author

@kares there we go for step 1, let me know what you think if you have a sec :)

@kares
Copy link
Member

kares commented Aug 28, 2017

very najs, am all for it!

@kares kares added the internal label Aug 29, 2017
@kares
Copy link
Member

kares commented Aug 31, 2017

can already find a use-case for this piece of code, thanks @original-brownbear

@kares kares merged commit 72029ed into jruby:master Aug 31, 2017
@original-brownbear original-brownbear deleted the jmh branch August 31, 2017 09:32
@kares kares added this to the Non-Release milestone Aug 31, 2017
@original-brownbear
Copy link
Contributor Author

@kares np :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants