-
Notifications
You must be signed in to change notification settings - Fork 17
Performance
Marco Terzer edited this page Nov 11, 2015
·
23 revisions
Performance results for the following decimal4j types are given below:
- Decimal (immutable)
- MutableDecimal
- Primitive Decimal (here called native Decimal), see [DecimalArithmetic API](DecimalArithmetic API)
As reference points we also list performance results for
- Primitive double
- BigDecimal
The results have been run on our vRoot build server:
- Linux 3.2.0-4-amd64
- Debian GNU/Linux 7.9 (wheezy)
- Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz (2 dedicated cores)
- JDK version 1.8.0_31
- JMH library version: 1.11.1
You can run the complete performance test suite via gradle with
gradle jmh
Note: running the full suite takes approximately 3 hours!
You can also run a single test as follows:
gradle jmhJar
java org.decimal4j.jmh.AddBenchmark
java -cp build/libs/decimal4j-1.0.1-jmh.jar org.decimal4j.jmh.AddBenchmark
java -cp build/libs/decimal4j-1.0.1-jmh.jar org.decimal4j.jmh.JmhRunner
Note: running the full suite takes approximately 3 hours!