big-16Mb.py 698 B

123456789101112131415161718192021222324252627282930313233343536
  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.Workbook import *
  6. from xlwt.Style import *
  7. style = XFStyle()
  8. wb = Workbook()
  9. ws0 = wb.add_sheet('0')
  10. colcount = 200 + 1
  11. rowcount = 6000 + 1
  12. t0 = time()
  13. print("\nstart: %s" % ctime(t0))
  14. print("Filling...")
  15. for col in xrange(colcount):
  16. print("[%d]" % col, end=' ')
  17. for row in xrange(rowcount):
  18. #ws0.write(row, col, "BIG(%d, %d)" % (row, col))
  19. ws0.write(row, col, "BIG")
  20. t1 = time() - t0
  21. print("\nsince starting elapsed %.2f s" % (t1))
  22. print("Storing...")
  23. wb.save('big-16Mb.xls')
  24. t2 = time() - t0
  25. print("since starting elapsed %.2f s" % (t2))