Guest User

Untitled

a guest
Jun 7th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Baseline
  2.  
  3. Running time 23.452 sec
  4. Filename: my_bench.py
  5.  
  6. Line # Mem usage Increment Line Contents
  7. ================================================
  8. 24 70.8 MiB 0.0 MiB @profile
  9. 25 def test():
  10. 26 70.8 MiB 0.0 MiB with measure():
  11. 27 70.8 MiB 0.0 MiB fil = open('data.txt')
  12. 28 99.5 MiB 28.7 MiB for l in fil:
  13. 29 99.5 MiB 0.0 MiB j = json.loads(l)
  14. 30 99.4 MiB -0.1 MiB fil.close()
  15.  
  16.  
  17.  
  18.  
  19. with memory pressure
  20. Running time 23.777 sec
  21. Filename: my_bench.py
  22.  
  23. Line # Mem usage Increment Line Contents
  24. ================================================
  25. 24 71.8 MiB 0.0 MiB @profile
  26. 25 def test():
  27. 26 71.8 MiB 0.0 MiB with measure():
  28. 27 71.8 MiB 0.0 MiB fil = open('data.txt')
  29. 28 84.1 MiB 12.3 MiB for l in fil:
  30. 29 84.1 MiB 0.0 MiB j = json.loads(l)
  31. 30 84.1 MiB 0.0 MiB fil.close()
Advertisement
Add Comment
Please, Sign In to add comment