performance - Java Junit precise Benchmarking and conclusion of complexity -


i using java , have used junit-benchmarks-0.7.2 junit performance tests , works fine part of warm ups , multiple runs test functions , plotting results , want ask 2 features can't find in junit-benchmark : 1-it not precise execution time in milliseconds (specially in plots , have plots functions taking more 0.1 sec in execution

2-is there plugin can give rough or exact estimation complexity of code ?? if displays performance of code vs expected performance cases o(n^2) or o(n) or how ever calculates ??? (it doesn't matter if free or paid plugin , want 1 task )

i guess this far answer:

won't fix; stick millis default granularity. if needs nanosecond-grade timing, run benchmarks caliper.

this i'd recommend, too, me junit-benchmarks doesn't seem advanced. may wrong haven't watched closely.

you can write junit test caliper benchmark i did, if helps.

concerning complexity estimator, there such plans caliper, doubt did it. yourself... in few hours, guess. i'm afraid, won't useful: can extrapolate sees , there may problems manifest outside of measured range. should better interpolate , loses sense can spot problems without tool.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -