old_contents: from ..Workbook import Workbook
  import openpyxl
  import xlsxwriter.workbook
  import time
  
  ROWS = 6500
  COLUMNS = 100
  testData = [[1] * COLUMNS] * ROWS
  def run_pyexcelerate():
      wb = Workbook()
      stime = time.clock()
      ws = wb.new_sheet("Test 1", data=testData)
      wb.save("test_pyexcelerate.xlsx")
      print "pyexcelerate, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
      
  def run_openpyxl():
      stime = time.clock()
      wb = openpyxl.workbook.Workbook(optimized_write=True) 
      ws = wb.create_sheet()
      ws.title ="Test 1"
      for row in testData:
          ws.append(row)
      wb.save("test_openpyxl.xlsx")
      print "openpyxl, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
  
  def run_xlsxwriter():
      stime = time.clock()
      wb = xlsxwriter.workbook.Workbook('test_xlsxwriter.xlsx', {'constant_memory': True})
      ws = wb.add_worksheet()
      for row in range(ROWS):
          for col in range(COLUMNS):
              ws.write_number(row, col, 1)
      wb.close()
      print "xlsxwriter, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
  
  def test_all():
      run_pyexcelerate()
      run_xlsxwriter()
      # run_openpyxl()
  
new_contents: from ..Workbook import Workbook
  import openpyxl
  import xlsxwriter.workbook
  import time
  
  ROWS = 6500
  COLUMNS = 100
  testData = [[1] * COLUMNS] * ROWS
  
  def run_pyexcelerate():
      wb = Workbook()
      stime = time.clock()
      ws = wb.new_sheet("Test 1", data=testData)
      wb.save("test_pyexcelerate.xlsx")
      print "pyexcelerate, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
      
  def run_openpyxl():
      stime = time.clock()
      wb = openpyxl.workbook.Workbook(optimized_write=True) 
      ws = wb.create_sheet()
      ws.title ="Test 1"
      for row in testData:
          ws.append(row)
      wb.save("test_openpyxl.xlsx")
      print "openpyxl, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
  
  def run_xlsxwriter():
      stime = time.clock()
      wb = xlsxwriter.workbook.Workbook('test_xlsxwriter.xlsx', {'constant_memory': True})
      ws = wb.add_worksheet()
      for row in range(ROWS):
          for col in range(COLUMNS):
              ws.write_number(row, col, 1)
      wb.close()
      print "xlsxwriter, %s, %s, %s" % (ROWS, COLUMNS, time.clock() - stime)
  
  def test_all():
      run_pyexcelerate()
      run_xlsxwriter()
      run_openpyxl()
  
subject: Update benchmark script