Skip to content
Donat Müller edited this page Jul 19, 2015 · 4 revisions

Performance Tests

Run the test class "org.oss.performance.PerformanceTest" to see how JSHuntingYard perform against JEval. There is a significant difference in the speed.

What makes the difference?

  • JSHuntingYard doesn't calculate the number of parameters etc.
  • JSHuntingYard has less string handling.
  • JSHuntingYard avoids running through the parsing and evaluation more then one time.

Concrete performance numbers

  • JEval with parsing and evaluation together, time elapsed within 780 ms
  • JSHuntingYard with parsing and evaluation together, time elapsed within 399 ms
  • JEval evaluation without parsing, time elapsed within 432 ms
  • JSHuntingYard evaluation without parsing, time elapsed within 97 ms
  • Java - reference time mesurement byte code , time elapsed within 13 ms

Clone this wiki locally