Java – caliper: how to run multiple benchmarks?

I wrote some benchmarks using caliper How do I run multiple benchmarks at once? I currently have many classes that extend simplebenchmark, and each class has some timexxx methods Is it possible to run these at the same time?

Simplebenchmark's JavaDocs says:

Uh, what? This looks incomplete

Caliper's mailing list indicates that it is not applicable to Q & A, and issues with "caliper" label are posted here However, I see zero posts with this tag! I can't create a new tag because I don't have a 1500 representative yet

Use case: there is only one setup / teardown method There are many tests in my benchmark class, and each test allocates a lot of memory I currently have to use a huge heap, which will only grow when I add more tests In addition, many tests in a file become a little untidy It would be nice to specify multiple benchmark classes and treat all tests as one run

Solution

No, As a suite, there is no built - in mechanism to run irrelevant benchmarks You can do this using a simple shell script:

#!/bin/bash
echo $* | xargs -n 1 $CALIPER_HOME/caliper

What are your use cases? We hope to better support benchmarking in Hudson and others; I hope we can put them together as soon as possible

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>