Change in ovirt-engine[master]: microbenchmarks: Introduce microbenchmarks using JMH

From Roy Golan <rgolan@redhat.com>:
Roy Golan has submitted this change and it was merged. Change subject: microbenchmarks: Introduce microbenchmarks using JMH ...................................................................... microbenchmarks: Introduce microbenchmarks using JMH See: http://openjdk.java.net/projects/code-tools/jmh/ Motivation: Microbenchmark when you don't know how pieces of code behave in runtime. For example, make sure encryption and decryption performs well and doesn't affect the throughput of query for vds from the db. Change: Add encryption and decryption benchmarks based on EngineEncryptionUtils Result: Run Benchmarks from your IDE or using mvn or straight java: - mvn package creates an uber jar target/benchmarks.jar - run it with java -jar target/benchmarks.jar - or run mvn test -P benchmarks Sample output of running 'mvn test -P benchmarks': Benchmark Mode Samples Score Score error Units Benchmark.decryption thrpt 50 0.099 0.002 ops/ms Benchmark.encryption thrpt 50 0.237 0.003 ops/ms Benchmark.decryption avgt 50 10.038 0.166 ms/op Benchmark.encryption avgt 50 4.419 0.239 ms/op Benchmark.decryption sample 5320 10.381 0.064 ms/op Benchmark.encryption sample 12864 4.280 0.015 ms/op Benchmark.decryption ss 50 14.313 1.430 ms Benchmark.encryption ss 50 8.725 0.683 ms Process finished with exit code 0 Change-Id: If93cfe18435f8c9fc16973296e4f5e598eb0b248 Signed-off-by: Roy Golan <rgolan@redhat.com> --- A backend/manager/modules/microbenchmarks/exclude-filters.xml A backend/manager/modules/microbenchmarks/pom.xml A backend/manager/modules/microbenchmarks/src/main/java/org/ovirt/engine/benchmarks/EncryptionDecryptionBenchmark.java A backend/manager/modules/microbenchmarks/src/main/resources/key.p12 M backend/manager/modules/pom.xml 5 files changed, 220 insertions(+), 0 deletions(-) Approvals: Jenkins CI: Passed CI tests Allon Mureinik: Looks good to me, but someone else must approve Roy Golan: Verified; Looks good to me, approved Moti Asayag: Looks good to me, but someone else must approve -- To view, visit https://gerrit.ovirt.org/74537 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: If93cfe18435f8c9fc16973296e4f5e598eb0b248 Gerrit-PatchSet: 18 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Roy Golan <rgolan@redhat.com> Gerrit-Reviewer: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Greg Sheremeta <gshereme@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Moti Asayag <masayag@redhat.com> Gerrit-Reviewer: Roy Golan <rgolan@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
Code Review