Giter Club home page Giter Club logo

benchmark-jmh's Introduction

"# benchmark-jmh"

For testing

git clone https://github.com/venergiac/benchmark-jmh.git
mvn install
java -jar target\benchmark-0.0.1-SNAPSHOT.jar

Results on a Windows PC with java 9

Benchmark      (max)   (p)  Mode  Cnt   Score    Error  Units
MyTest.test1  100000     1  avgt   20  24.751 ±  4.780  ms/op
MyTest.test1  100000   100  avgt   20  25.986 ±  6.268  ms/op
MyTest.test1  100000  1000  avgt   20  32.744 ±  7.484  ms/op
MyTest.test2  100000     1  avgt   20   9.150 ±  0.604  ms/op
MyTest.test2  100000   100  avgt   20   9.951 ±  2.425  ms/op
MyTest.test2  100000  1000  avgt   20   9.231 ±  0.905  ms/op
MyTest.test3  100000     1  avgt   20  34.440 ±  9.014  ms/op
MyTest.test3  100000   100  avgt   20  36.710 ±  8.946  ms/op
MyTest.test3  100000  1000  avgt   20  33.137 ±  9.326  ms/op
MyTest.test4  100000     1  avgt   20  39.412 ± 10.397  ms/op
MyTest.test4  100000   100  avgt   20  37.823 ± 12.362  ms/op
MyTest.test4  100000  1000  avgt   20  32.411 ±  5.971  ms/op

Throughput

Benchmark      (max)   (p)   Mode  Cnt  Score   Error   Units
MyTest.test1  100000     1  thrpt   20  0.032 ± 0.009  ops/ms
MyTest.test1  100000   100  thrpt   20  0.040 ± 0.010  ops/ms
MyTest.test1  100000  1000  thrpt   20  0.038 ± 0.010  ops/ms
MyTest.test2  100000     1  thrpt   20  0.113 ± 0.005  ops/ms
MyTest.test2  100000   100  thrpt   20  0.105 ± 0.014  ops/ms
MyTest.test2  100000  1000  thrpt   20  0.111 ± 0.006  ops/ms
MyTest.test3  100000     1  thrpt   20  0.030 ± 0.008  ops/ms
MyTest.test3  100000   100  thrpt   20  0.026 ± 0.007  ops/ms
MyTest.test3  100000  1000  thrpt   20  0.033 ± 0.008  ops/ms
MyTest.test4  100000     1  thrpt   20  0.032 ± 0.005  ops/ms
MyTest.test4  100000   100  thrpt   20  0.030 ± 0.006  ops/ms
MyTest.test4  100000  1000  thrpt   20  0.029 ± 0.006  ops/ms

and the winner is test 2!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.