IMPORTANT: The rows Method 2: setdefault, iteritems() in Table 1 and
Method 2: setdefault in Table 2 were obtained actually with dict.get() instead of dict.setdefault().
As stated on the 2018-09-16 update, I thought the
--use_setdefault option was implemented when I ran the main script
compute_avg_run_time.py which was not
the case. dict.get() was used instead of dict.setdefault(). Check the
newest results where I re-ran the
python commands with the updated code.
The following two tables present average run times that were obtained with python scripts having commit HASH c834169f4b7f74f21e3fe3006483baa44f83ef91.
Table 1 Average running times of different methods
of reversing a
of reversing a
dict in Python 2.7
Table 2 Average running times of different methods
of reversing a
of reversing a
dict in Python 3