Proyecto

General

Perfil

Performance » Histórico » Versión 2

Federico Vera, 2018-07-17 11:00

1 1 Federico Vera
## Performance
2 2 Federico Vera
3
## In Java 8
4 1 Federico Vera
~~~
5 2 Federico Vera
Running net.objecthunter.exp4j.PerformanceTest
6 1 Federico Vera
+------------------------+---------------------------+--------------------------+
7
| Implementation         | Calculations per Second   | Percentage of Math       |
8
+------------------------+---------------------------+--------------------------+
9 2 Federico Vera
| Java Math              |                3493245.00 |               100.0000 % |
10
| exp4j                  |                1564794.00 |                44.7949 % |
11
| exp4j simplified       |                1792306.00 |                51.3078 % |
12
| JSR-223 (Java Script)  |                1769687.50 |                50.6603 % |
13
+------------------------+---------------------------+--------------------------+
14
~~~
15
16
## In Java 10
17
~~~
18
Running net.objecthunter.exp4j.PerformanceTest
19
+------------------------+---------------------------+--------------------------+
20
| Implementation         | Calculations per Second   | Percentage of Math       |
21
+------------------------+---------------------------+--------------------------+
22
| Java Math              |                3471633.50 |               100.0000 % |
23
| exp4j                  |                2127792.00 |                61.2908 % |
24
| exp4j simplified       |                2147921.50 |                61.8706 % |
25
| JSR-223 (Java Script)  |                2437995.00 |                70.2262 % |
26 1 Federico Vera
+------------------------+---------------------------+--------------------------+
27
~~~
Volver al inicio