Benchmark

Benchmarks in nanoseconds (10-9s) per operation using Sun Microsystems Inc.'s virtual machine version 1.1.8 on a Win98 AMD K6-2 350MHz, 16MB heap memory


view chartvalueOf(int)view chartintValue()
Iteration count20000020000000
be.arci.math.BigDecimal production5250227
be.arci.math.BigDecimal evaluation5500275
view chartvalueOf(long)view chartlongValue()
Iteration count20000020000000
be.arci.math.BigDecimal production5450 282
be.arci.math.BigDecimal evaluation6300 330
view chartnew BigDecimal(double)view chartdoubleValue()
Iteration count1000010000
be.arci.math.BigDecimal production104000 44000
be.arci.math.BigDecimal evaluation121000 44000
view chartnew BigDecimal(String)
Avg. Precision8184476141269525
Iteration count500000250000166660125000909006250045440
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production846096801350017600242023856068882
be.arci.math.BigDecimal evaluation8560109601416018880265124208073723
com.tce.math.TBigDecimal (symcjit)0000000
view charttoString
Avg. Precision8184476141269525
Iteration count1920001280003200032000320003200032000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production744794531375018750259374281277187
be.arci.math.BigDecimal evaluation770899211375018750275004437582187
com.tce.math.TBigDecimal (symcjit)0000000
view chartadd
Avg. Precision8184476141269525
Iteration count2400001600004000040000400004000040000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production5708718770009500125001800031500
be.arci.math.BigDecimal evaluation73338875950011000137502075034250
com.tce.math.TBigDecimal (symcjit)0000000
view chartsubtract
Avg. Precision8184476141269525
Iteration count2400001600004000040000400004000040000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production845889371225013750192502750046750
be.arci.math.BigDecimal evaluation962596251250015000220003175050750
com.tce.math.TBigDecimal (symcjit)0000000
view chartmultiply
Avg. Precision8184476141269525
Iteration count192000128000320003200032000160006400
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production82811031220625396871062503400001201562
be.arci.math.BigDecimal evaluation91661460925625546871493754806251742187
com.tce.math.TBigDecimal (symcjit)0000000
view chartdivide
Avg. Precision8184476141269525
Iteration count600004000010000100001000048002000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production1833318000550001160002960009375003270000
be.arci.math.BigDecimal evaluation23833217507100015400042300013375004725000
com.tce.math.TBigDecimal (symcjit)0000000
view chartpow
Avg. Precision8184476141269525
Iteration count2400016000400020005607010
be.arci.math.BigDecimal evaluation0000000
be.arci.math.BigDecimal production570831062503550009350002839285942857133000000
be.arci.math.BigDecimal evaluation68750137500495000132000041250001414285755000000
com.tce.math.TBigDecimal (symcjit)0000000
view chartcompareTo
Avg. Precision8184476141269525
Iteration count24000001600000400000400000400000400000400000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production2502751250014825193752775046425
be.arci.math.BigDecimal evaluation2753061360016050217003157549300
com.tce.math.TBigDecimal (symcjit)0000000
view chartequals
Avg. Precision8184476141269525
Iteration count48000003200000800000800000800000800000800000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production445515487412412475412
be.arci.math.BigDecimal evaluation481534487475487475475
com.tce.math.TBigDecimal (symcjit)0000000
view chartabs
Avg. Precision8184476141269525
Iteration count48000009600000640000012000000224000004240000084000000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production410411110110108129109
be.arci.math.BigDecimal evaluation433429110118108108109
com.tce.math.TBigDecimal (symcjit)0000000
view chartmax
Avg. Precision8184476141269525
Iteration count24000001600000400000400000400000400000400000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production3874121250014975195002787546000
be.arci.math.BigDecimal evaluation4124121357515925217003157549450
com.tce.math.TBigDecimal (symcjit)0000000
view chartsetScale
Avg. Precision8184476141269525
Iteration count2400001600004000040000400004000040000
java.math.BigDecimal (symcjit)0000000
be.arci.math.BigDecimal production50415125550055006750950012500
be.arci.math.BigDecimal evaluation55005875550070008250950013750
com.tce.math.TBigDecimal (symcjit)0000000
view chartnew BigDecimal(java.math.BigDecimal)
Avg. Precision8184476141269525
Iteration count1920001280003200032000320003200032000
be.arci.math.BigDecimal production496878406218375030031257000011946872899062
be.arci.math.BigDecimal evaluation489068539018718730718756125013200003055000
com.tce.math.TBigDecimal (symcjit)0000000
view charttoBigDecimal
Avg. Precision8184476141269525
Iteration count4800003200008000080000800008000080000
be.arci.math.BigDecimal production95009437878751641253412508252501923125
be.arci.math.BigDecimal evaluation94795253110912519975042362510257502365250
com.tce.math.TBigDecimal (symcjit)0000000
view chartnumber 'e' (microseconds)
Precision8163264128256512102420484096
Iteration count 256 128 64 32 16 8 4 2 1 1
be.arci.math.BigDecimal production 625000 859375 1718750 3437500 10625000 41250000 177500000 1045000000 6810000000 45540000000
be.arci.math.BigDecimal evaluation 664062 859375 1718750 5000000 13750000 48750000 247500000 1455000000 9670000000 67390000000