Result: SavedThe test labeled "system()" was the faster by 0.0129 seconds, (1.748% faster)
The system() test took 0.7228 seconds.
The shell_exec() test took 0.7357 seconds.
Each test case ran 20 random code order iterations consisting of 174,471 loops for a total of 3,489,420 runs.
- Line execution difference (0.000004) milliseconds.
- Avg difference (0.643) milliseconds per 174,471 loops.
- Total difference 12.86 milliseconds for 3,489,420 loops
The iteration variablity for Code 1 was (2.1850) milliseconds and Code 2 was (2.3073) 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: