UIZE JavaScript Framework

PERFORMANCE TEST: String Match Conditional Styles

This test page demonstrates that using the slightly shorter > -1 conditional expression in place of the != -1 expression has no appreciable performance cost over a large number of iterations.

In the test, the two different expressions are each performed 3,000,000 times. There is no additional code being performed by the iterators, so the cost is purely for the conditional expressions.