Result: DiscardedThe test labeled "shell_exec()" was the faster by 0.0333 seconds, (2.858% faster)
The shell_exec() test took 1.1323 seconds.
The system() test took 1.1656 seconds.
Each test case ran 20 random code order iterations consisting of 277,584 loops for a total of 5,551,680 runs.
- Line execution difference (0.000006) milliseconds.
- Avg difference (1.665) milliseconds per 277,584 loops.
- Total difference 33.31 milliseconds for 5,551,680 loops
The iteration variablity for Code 1 was (11.3857) milliseconds and Code 2 was (8.1634) milliseconds. The lower and the closer together there values are the more accurate the results are.
The first test, "system()", was:
The second test, "shell_exec()", was: