Result: DiscardedThe test labeled "concat" was the faster by 0.0053 seconds, (0.920% faster)
The concat test took 0.5717 seconds.
The commas test took 0.577 seconds.
Each test case ran 20 random code order iterations consisting of 157,237 loops for a total of 3,144,740 runs.
- Line execution difference (0.000002) milliseconds.
- Avg difference (0.265) milliseconds per 157,237 loops.
- Total difference 5.31 milliseconds for 3,144,740 loops
The iteration variablity for Code 1 was (3.1331) milliseconds and Code 2 was (2.0888) milliseconds. The lower and the closer together there values are the more accurate the results are.
The first test, "commas", was:
echo $GLOBALS['x'], ' test ', $GLOBALS['y'], $GLOBALS['z'], ' test ';
The second test, "concat", was:
echo $GLOBALS['x'] . ' test ' . $GLOBALS['y'] . $GLOBALS['z'] . ' test ';