Skip to content

Instantly share code, notes, and snippets.

@nomeata
Created October 1, 2015 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nomeata/c1c7f737a978caa8bf06 to your computer and use it in GitHub Desktop.
Save nomeata/c1c7f737a978caa8bf06 to your computer and use it in GitHub Desktop.
Strange perf results
$ for x in ghc-7.10-no-call-arity-no-oneshot-plain-foldl ghc-7.10-plain-foldl; do perf stat -r 5 -e cache-references,cache-misses,cycles,instructions,branches,faults,migrations ./$x/nofib/spectral/knights/knights 32 6 +RTS -I0 -V0 -t >/dev/null; done
<<ghc: 330477432 bytes, 632 GCs, 370333/982272 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 0.934 MUT (0.934 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477432 bytes, 632 GCs, 370333/982272 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 0.933 MUT (0.933 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477432 bytes, 632 GCs, 370333/982272 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 0.933 MUT (0.933 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477432 bytes, 632 GCs, 370333/982272 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 0.933 MUT (0.934 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477432 bytes, 632 GCs, 370333/982272 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 0.933 MUT (0.933 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
Performance counter stats for './ghc-7.10-no-call-arity-no-oneshot-plain-foldl/nofib/spectral/knights/knights 32 6 +RTS -I0 -V0 -t' (5 runs):
5.726.728 cache-references ( +- 2,25% )
21.489 cache-misses # 0,375 % of all cache refs ( +- 41,27% )
1.531.088.532 cycles ( +- 0,02% )
3.452.897.878 instructions # 2,26 insns per cycle ( +- 0,00% )
809.951.688 branches ( +- 0,00% )
1.132 faults ( +- 0,02% )
0 migrations
0,959535791 seconds time elapsed ( +- 0,02% )
<<ghc: 330477168 bytes, 632 GCs, 370322/982256 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 1.024 MUT (1.024 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477168 bytes, 632 GCs, 370322/982256 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 1.024 MUT (1.024 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477168 bytes, 632 GCs, 370322/982256 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 1.023 MUT (1.024 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477168 bytes, 632 GCs, 370322/982256 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 1.024 MUT (1.024 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
<<ghc: 330477168 bytes, 632 GCs, 370322/982256 avg/max bytes residency (3 samples), 3M in use, 0.000 INIT (0.000 elapsed), 1.024 MUT (1.024 elapsed), 0.024 GC (0.024 elapsed) :ghc>>
Performance counter stats for './ghc-7.10-plain-foldl/nofib/spectral/knights/knights 32 6 +RTS -I0 -V0 -t' (5 runs):
5.273.811 cache-references ( +- 1,53% )
19.515 cache-misses # 0,370 % of all cache refs ( +- 36,57% )
1.675.463.623 cycles ( +- 0,01% )
3.452.886.513 instructions # 2,06 insns per cycle ( +- 0,00% )
809.955.569 branches ( +- 0,00% )
1.133 faults ( +- 0,02% )
0 migrations
1,049964229 seconds time elapsed ( +- 0,01% )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment