Using each approach mentioned above, a for-loop repeats each function call 10M times, getting the total time for the entire loop.
That for-loop is repeated 30 times to obtain an average time per 10M actions.