Open feiquan666 opened 2 months ago
I ran the test and I confirm that there is an issue: decimal:
Loop 1 times,Cost: 5 ms
Loop 10 times,Cost: 2 ms
Loop 100 times,Cost: 74 ms
Loop 1000 times,Cost: 41150 ms
big_decimal:
Loop 1 times,Cost: 0 ms
Loop 10 times,Cost: 0 ms
Loop 100 times,Cost: 0 ms
Loop 1000 times,Cost: 4 ms
Loop 10000 times,Cost: 440 ms
It is recommended that you use big_decimal.
It is hoped that the author can read and deeply understand the implementation of Java's large number of calculations and use DART languages. Or abandon the update of this warehouse, so as not to cause unnecessary trouble for users who do not know the specific situation.
decimal Test
big_decimal Test
Using Java BigDecimal