to test with this new timer moduleyou can change the timing scripts as followsor use the precoded version in the book' examples file timeseqs_timer pythe results are essentially the same as before (this is primarily just an api change)so won' list them again hereimport systimer for test in (forlooplistcompmapcallgenexprgenfunc)(totalresulttimer bestoftotal(test_reps = _reps= or(totalresulttimer bestoftotal(test(totalresulttimer bestof(test_reps= (totalresulttimer total(test_reps= (bestof(totalresult)timer bestof(timer totaltest_reps= print ('%- =[% % ](test __name__totalresult[ ]result[- ])you can also run few interactive tests as we did for the original version--the results are again essentially the same as beforebut we pass in the repetition counts as keywords that provide defaults if omittedin python from timer import totalbestofbestoftotal total(pow )[ total(pow _reps= )[ total(pow _reps= )[ bestof(pow )[ bestof(pow _reps= )[ * dflt reps * reps * reps * dflt reps * mbest of bestoftotal(str upper'spam'_reps = _reps= best of tot of ( 'spam'bestof(totalstr upper'spam'_reps= nested calls work too ( ( 'spam')to see how keywords are supported nowdefine function with more arguments and pass some by namedef spam(abcd)return total(spam = = _reps= ( bestof(spam = = _reps= ( - bestoftotal(spam = = _reps = _reps= ( bestoftotal(spam*( )_reps = _reps= **dict( = = )( the benchmarking interlude