text100MB.praat 453 B

123456789101112131415161718192021222324
  1. # text100MB.praat
  2. # Paul Boersma, 9 November 2008
  3. echo Text 100 MB:
  4. stopwatch
  5. a$ = "a"
  6. for i to 8
  7. a$ = a$ + a$ + a$ + a$ + a$ + a$ + a$ + a$ + a$ + a$
  8. endfor
  9. t = stopwatch
  10. printline creating: 't:3' seconds
  11. stopwatch
  12. a$ > kanweg.txt
  13. t = stopwatch
  14. printline writing: 't:3' seconds
  15. stopwatch
  16. b$ < kanweg.txt
  17. t = stopwatch
  18. printline reading: 't:3' seconds
  19. stopwatch
  20. assert a$ = b$
  21. t = stopwatch
  22. printline comparing: 't:3' seconds
  23. deleteFile ("kanweg.txt")