def time_pyexcelerate():
 start_time = clock()
 workbook = pyexcelerate.Workbook()
 worksheet = workbook.new_sheet('Sheet1')
 for row in range((row_max // 2)):
  for col in range(col_max):
   worksheet.set_cell_value(((row * 2) + 1), (col + 1), ('Row: %d Col: %d' % (row, col)))
  for col in range(col_max):
   worksheet.set_cell_value(((row * 2) + 2), (col + 1), (row + col))
 workbook.save('pyexcelerate.xlsx')
 elapsed = (clock() - start_time)
 print_elapsed_time('pyexcelerate', elapsed)

def time_pyexcelerate ( ) : start_time = clock ( ) workbook = pyexcelerate . Workbook ( ) worksheet = workbook . new_sheet ( 'Sheet1' ) for row in range ( ( row_max // 2 ) ) : for col in range ( col_max ) : worksheet . set_cell_value ( ( ( row * 2 ) + 1 ) , ( col + 1 ) , ( 'Row: %d Col: %d' % ( row , col ) ) ) for col in range ( col_max ) : worksheet . set_cell_value ( ( ( row * 2 ) + 2 ) , ( col + 1 ) , ( row + col ) ) workbook . save ( 'pyexcelerate.xlsx' ) elapsed = ( clock ( ) - start_time ) print_elapsed_time ( 'pyexcelerate' , elapsed )
run pyexcelerate in "faster" mode .