UIZE JavaScript Framework

PERFORMANCE TEST: Repeat String Approaches

This test page demonstrates that the Uize.Str.Repeat.repeat static method performs about the same as a typical implementation for the majority case, and performs significantly better in specific cases for which this method's implementation has been optimized.

In the test, the Uize.Str.Repeat.repeat static method is being compared to a typical implementation - 6000 iterations for each test - given various different parameter values. As you can see from the results, the UIZE implementation's optimizations have a dramatic effect for the special cases.