quick performance measurements

Simon Peyton Jones simonpj at microsoft.com
Fri Feb 12 20:28:34 UTC 2016

cd testsuite/tests/perf; make

| -----Original Message-----
| From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Richard
| Eisenberg
| Sent: 12 February 2016 19:04
| To: ghc-devs at haskell.org developers <ghc-devs at haskell.org>
| Subject: quick performance measurements
| Hi devs,
| I have a few ideas for tweaks to improve compiler performance. (For example,
| reversing the order of comparisons in a short-circuiting comparison
| operation.) I don't have a particular test case with a profile that tells me
| where the smoking gun is. But I'd like to try these easy tweaks just to see
| if performance improves.
| My question:
| Is there an easy way to run some command that will give me helpful feedback
| on my performance tweak?
| Of course, I could push to a branch and have
| https://na01.safelinks.protection.outlook.com/?url=perf.haskell.org&data=01%7
| c01%7csimonpj%40064d.mgd.microsoft.com%7cb2e1edc8a6f248a9066508d333df5623%7c7
| 2f988bf86f141af91ab2d7cd011db47%7c1&sdata=wU6DNmX%2bLF8sagU0B9yJAh4MKJ3yJc1CA
| omIiSI%2fqvM%3d tell me. But that takes a long time. I could compile a few
| files and examine the output manually. But that's a bit painful. Ideally,
| there would be a way to run a portion of the testsuite and have the testsuite
| tool aggregate performance characteristics and report. Or perhaps there's a
| way to get cabal to aggregate performance characteristics, and I could just
| try compiling a few libraries. Any ideas out there?
| Thanks!
| Richard
| _______________________________________________
| ghc-devs mailing list
| ghc-devs at haskell.org
| https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.haskell.
| org%2fcgi-bin%2fmailman%2flistinfo%2fghc-
| devs&data=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7cb2e1edc8a6f248a9066508
| d333df5623%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=JnjGw%2fk%2brdNGy9VNY
| 0m1KA7Ojr2ubJO6PneeGVL4LmY%3d

More information about the ghc-devs mailing list