termination-depth-1-against-100.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. Subject:
  2. Re: Termination checker to blame for bad performance [Re: [Agda] long type checking times in the development version]
  3. From:
  4. Chuangjie Xu <C.Xu.2@cs.bham.ac.uk>
  5. Date:
  6. 22.03.2014 15:27
  7. To:
  8. Andreas Abel <andreas.abel@ifi.lmu.de>
  9. CC:
  10. Martin Escardo <m.escardo@cs.bham.ac.uk>
  11. Dear Andreas,
  12. Here is the result of running "time agda +RTS -s -RTS":
  13. -----------------------------------------------------------------
  14. xu@XU-PC:~/Work/TypeTopology/both/TT-eating-itself/working$ time agda +RTS
  15. -s -RTS Interpretation-of-TT-with-equality-mini.lagda
  16. Checking Interpretation-of-TT-with-equality-mini
  17. (/media/xu/Something/Study/TypeTopology/both/TT-eating-itself/working/Interpretation-of-TT-with-equality-mini.lagda).
  18. Checking TT-with-equality-mini
  19. (/media/xu/Something/Study/TypeTopology/both/TT-eating-itself/working/TT-with-equality-mini.lagda).
  20. Finished TT-with-equality-mini.
  21. Checking Preliminaries
  22. (/media/xu/Something/Study/TypeTopology/both/TT-eating-itself/working/Preliminaries.lagda).
  23. Finished Preliminaries.
  24. Finished Interpretation-of-TT-with-equality-mini.
  25. 2,264,910,112 bytes allocated in the heap
  26. 420,622,216 bytes copied during GC
  27. 22,483,216 bytes maximum residency (19 sample(s))
  28. 728,368 bytes maximum slop
  29. 65 MB total memory in use (0 MB lost due to fragmentation)
  30. Tot time (elapsed) Avg pause Max
  31. pause
  32. Gen 0 4335 colls, 0 par 0.38s 0.38s 0.0001s
  33. 0.0012s
  34. Gen 1 19 colls, 0 par 0.32s 0.32s 0.0167s
  35. 0.0368s
  36. INIT time 0.00s ( 0.00s elapsed)
  37. MUT time 1.28s ( 1.29s elapsed)
  38. GC time 0.70s ( 0.70s elapsed)
  39. EXIT time 0.00s ( 0.00s elapsed)
  40. Total time 1.99s ( 1.99s elapsed)
  41. %GC time 35.2% (35.1% elapsed)
  42. Alloc rate 1,766,172,432 bytes per MUT second
  43. Productivity 64.8% of total user, 64.7% of total elapsed
  44. real 0m1.996s
  45. user 0m1.946s
  46. sys 0m0.044s
  47. -----------------------------------------------------------------
  48. and the one of running "time agda --termination-depth=100 +RTS -s -RTS":
  49. -----------------------------------------------------------------
  50. xu@XU-PC:~/Work/TypeTopology/both/TT-eating-itself/working$ time agda
  51. --termination-depth=100 +RTS -s -RTS
  52. Interpretation-of-TT-with-equality-mini.lagda
  53. Checking Interpretation-of-TT-with-equality-mini
  54. (/media/xu/Something/Study/TypeTopology/both/TT-eating-itself/working/Interpretation-of-TT-with-equality-mini.lagda).
  55. Checking TT-with-equality-mini
  56. (/media/xu/Something/Study/TypeTopology/both/TT-eating-itself/working/TT-with-equality-mini.lagda).
  57. Finished TT-with-equality-mini.
  58. Checking Preliminaries
  59. (/media/xu/Something/Study/TypeTopology/both/TT-eating-itself/working/Preliminaries.lagda).
  60. Finished Preliminaries.
  61. Finished Interpretation-of-TT-with-equality-mini.
  62. 3,231,091,280 bytes allocated in the heap
  63. 468,666,144 bytes copied during GC
  64. 21,238,856 bytes maximum residency (19 sample(s))
  65. 598,224 bytes maximum slop
  66. 63 MB total memory in use (0 MB lost due to fragmentation)
  67. Tot time (elapsed) Avg pause Max
  68. pause
  69. Gen 0 6193 colls, 0 par 0.43s 0.43s 0.0001s
  70. 0.0013s
  71. Gen 1 19 colls, 0 par 0.35s 0.35s 0.0185s
  72. 0.0362s
  73. INIT time 0.00s ( 0.00s elapsed)
  74. MUT time 1.82s ( 1.83s elapsed)
  75. GC time 0.78s ( 0.78s elapsed)
  76. EXIT time 0.00s ( 0.00s elapsed)
  77. Total time 2.61s ( 2.61s elapsed)
  78. %GC time 30.0% (30.0% elapsed)
  79. Alloc rate 1,777,233,550 bytes per MUT second
  80. Productivity 70.0% of total user, 69.9% of total elapsed
  81. real 0m2.615s
  82. user 0m2.577s
  83. sys 0m0.032s
  84. -----------------------------------------------------------------
  85. Best,
  86. Chuangjie
  87. On Sat, 22 Mar 2014 14:44:46 +0100, Andreas Abel <andreas.abel@ifi.lmu.de>
  88. wrote:
  89. > > Dear Changjie,
  90. > >
  91. > > could you do me a favor? Can you type-check your development twice,
  92. > > once with
  93. > >
  94. > > rm *.agdai
  95. > > time agda +RTS -s -RTS ...
  96. > >
  97. > > and once with
  98. > >
  99. > > rm *.agdai
  100. > > time agda --termination-depth=100 +RTS -s -RTS
  101. > >
  102. > > and send me the results? Make sure you remove all .agdai files of your
  103. > > development before running each benchmark.
  104. > >
  105. > > That would be helpful in determining whether the default termination
  106. > > depth should be 1 or infinity.
  107. > >
  108. > > Cheers,
  109. > > Andreas
  110. > >
  111. > > On 21.03.2014 13:59, Chuangjie Xu wrote:
  112. >> >> Dear Andreas,
  113. >> >>
  114. >> >> After reinstalling GHC, I managed to install Agda from darcs today. Now
  115. >> >> the termination checker performs very well with our mutually recursive
  116. >> >> definitions. The older one took several minutes to load our files while
  117. >> >> this version takes less than 1 second.
  118. >> >>
  119. >> >> Many thanks,
  120. >> >> Chuangjie