big-35Mb.py 541 B

12345678910111213141516171819202122232425262728293031
  1. from __future__ import print_function
  2. #!/usr/bin/env python
  3. # tries stress SST, SAT and MSAT
  4. from time import *
  5. from xlwt import *
  6. style = XFStyle()
  7. wb = Workbook()
  8. ws0 = wb.add_sheet('0')
  9. colcount = 200 + 1
  10. rowcount = 6000 + 1
  11. t0 = time()
  12. for col in xrange(colcount):
  13. for row in xrange(rowcount):
  14. ws0.write(row, col, "BIG(%d, %d)" % (row, col))
  15. t1 = time() - t0
  16. print("\nsince starting elapsed %.2f s" % (t1))
  17. print("Storing...")
  18. wb.save('big-35Mb.xls')
  19. t2 = time() - t0
  20. print("since starting elapsed %.2f s" % (t2))