Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Baseline
- Running time 23.452 sec
- Filename: my_bench.py
- Line # Mem usage Increment Line Contents
- ================================================
- 24 70.8 MiB 0.0 MiB @profile
- 25 def test():
- 26 70.8 MiB 0.0 MiB with measure():
- 27 70.8 MiB 0.0 MiB fil = open('data.txt')
- 28 99.5 MiB 28.7 MiB for l in fil:
- 29 99.5 MiB 0.0 MiB j = json.loads(l)
- 30 99.4 MiB -0.1 MiB fil.close()
- with memory pressure
- Running time 23.777 sec
- Filename: my_bench.py
- Line # Mem usage Increment Line Contents
- ================================================
- 24 71.8 MiB 0.0 MiB @profile
- 25 def test():
- 26 71.8 MiB 0.0 MiB with measure():
- 27 71.8 MiB 0.0 MiB fil = open('data.txt')
- 28 84.1 MiB 12.3 MiB for l in fil:
- 29 84.1 MiB 0.0 MiB j = json.loads(l)
- 30 84.1 MiB 0.0 MiB fil.close()
Advertisement
Add Comment
Please, Sign In to add comment