def time_xlsxwriter():
 start_time = clock()
 workbook = xlsxwriter.Workbook('xlsxwriter.xlsx')
 worksheet = workbook.add_worksheet()
 for row in range((row_max // 2)):
  for col in range(col_max):
   worksheet.write_string((row * 2), col, ('Row: %d Col: %d' % (row, col)))
  for col in range(col_max):
   worksheet.write_number(((row * 2) + 1), col, (row + col))
 workbook.close()
 elapsed = (clock() - start_time)
 print_elapsed_time('xlsxwriter', elapsed)

def time_xlsxwriter ( ) : start_time = clock ( ) workbook = xlsxwriter . Workbook ( 'xlsxwriter.xlsx' ) worksheet = workbook . add_worksheet ( ) for row in range ( ( row_max // 2 ) ) : for col in range ( col_max ) : worksheet . write_string ( ( row * 2 ) , col , ( 'Row: %d Col: %d' % ( row , col ) ) ) for col in range ( col_max ) : worksheet . write_number ( ( ( row * 2 ) + 1 ) , col , ( row + col ) ) workbook . close ( ) elapsed = ( clock ( ) - start_time ) print_elapsed_time ( 'xlsxwriter' , elapsed )
run xlsxwriter in default mode .