JavaMoney / jsr354-ri

JSR 354 - Moneta: Reference Implementation
Other
344 stars 101 forks source link

Benchmark with JMH #260

Open stokito opened 5 years ago

stokito commented 5 years ago

I saw the org.javamoney.moneta.PerformanceTest and actually I can rewrite it with JMH and extend. Maybe we already have some benchmark?

marschall commented 5 years ago

I thought the same thing. I found that it's in general easier to put JMH benchmarks in a dedicated Maven submodule instead of fitting them into an existing one.

I haven't profiled org.javamoney.moneta.PerformanceTest yet but I would not be surprised int the rounding tests spend most of their time in Monetary.getDefaultRounding() rather than in rounding.