Advertisement
Guest User

ghc 7.10.3 no space leak with nested State

a guest
Feb 16th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. $ ghc --version
  2. The Glorious Glasgow Haskell Compilation System, version 7.10.3
  3.  
  4. $ ghc foo.hs -fforce-recomp && ./foo +RTS -s
  5. [1 of 1] Compiling Main ( foo.hs, foo.o )
  6. Linking foo ...
  7. ((),'a')
  8. 44,000,052,712 bytes allocated in the heap
  9. 2,717,328 bytes copied during GC
  10. 44,312 bytes maximum residency (2 sample(s))
  11. 21,224 bytes maximum slop
  12. 1 MB total memory in use (0 MB lost due to fragmentation)
  13.  
  14. Tot time (elapsed) Avg pause Max pause
  15. Gen 0 84458 colls, 0 par 0.109s 0.105s 0.0000s 0.0001s
  16. Gen 1 2 colls, 0 par 0.000s 0.000s 0.0001s 0.0001s
  17.  
  18. INIT time 0.000s ( 0.000s elapsed)
  19. MUT time 9.037s ( 9.035s elapsed)
  20. GC time 0.109s ( 0.105s elapsed)
  21. EXIT time 0.000s ( 0.000s elapsed)
  22. Total time 9.147s ( 9.141s elapsed)
  23.  
  24. %GC time 1.2% (1.2% elapsed)
  25.  
  26. Alloc rate 4,868,828,428 bytes per MUT second
  27.  
  28. Productivity 98.8% of total user, 98.9% of total elapsed
  29.  
  30. $ ghc foo.hs -O2 -fforce-recomp && ./foo +RTS -s
  31. [1 of 1] Compiling Main ( foo.hs, foo.o )
  32. Linking foo ...
  33. ((),'a')
  34. 18,400,051,824 bytes allocated in the heap
  35. 2,350,232 bytes copied during GC
  36. 44,312 bytes maximum residency (2 sample(s))
  37. 21,224 bytes maximum slop
  38. 1 MB total memory in use (0 MB lost due to fragmentation)
  39.  
  40. Tot time (elapsed) Avg pause Max pause
  41. Gen 0 35510 colls, 0 par 0.045s 0.043s 0.0000s 0.0001s
  42. Gen 1 2 colls, 0 par 0.000s 0.000s 0.0001s 0.0001s
  43.  
  44. INIT time 0.000s ( 0.000s elapsed)
  45. MUT time 2.456s ( 2.456s elapsed)
  46. GC time 0.045s ( 0.043s elapsed)
  47. EXIT time 0.000s ( 0.000s elapsed)
  48. Total time 2.502s ( 2.500s elapsed)
  49.  
  50. %GC time 1.8% (1.7% elapsed)
  51.  
  52. Alloc rate 7,491,409,858 bytes per MUT second
  53.  
  54. Productivity 98.2% of total user, 98.3% of total elapsed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement