Result: DiscardedThe test labeled "shell_exec()" was the faster by 0.0696 seconds, (7.090% faster)
The shell_exec() test took 0.9117 seconds.
The exec() test took 0.9813 seconds.
Each test case ran 20 random code order iterations consisting of 140,701 loops for a total of 2,814,020 runs.
- Line execution difference (0.000025) milliseconds.
- Avg difference (3.479) milliseconds per 140,701 loops.
- Total difference 69.58 milliseconds for 2,814,020 loops
The iteration variablity for Code 1 was (6.6361) milliseconds and Code 2 was (7.4843) milliseconds. The lower and the closer together there values are the more accurate the results are.
The first test, "exec()", was:
The second test, "shell_exec()", was: