Feedback request regarding HSOC project (bringing sanity to the GHC performance test-suite)
lonetiger at gmail.com
Tue Sep 5 05:02:49 UTC 2017
First off, thanks for all the hard work on this. I checked out your branch
and made a run, I noticed at the end it had
. ./perf/compiler/all.T  (unexpected indent (<string>, line 298))
so I assume none of the perf tests were run?
Though I do see a .git/refs/notes/perf, so I assume your ref is is perf?
Doing a git notes --ref perf show I see somethings were collected at some
local T3924 normal bytes allocated 47064
local haddock.base normal bytes allocated 18427047160
local haddock.Cabal normal bytes allocated 15863910848
local haddock.compiler normal bytes allocated 50656428952
which brings me up to my first question, I'm guessing the number here is
the number of bytes allocated for the test? Is there a way for me to see
what the maximum deviation the test allows is and how far I am from it? Do
I just get the information like before only when a test fails? How does
that look like? Same as before?
It's also not entirely clear to be what perf_notes.py can be used, is it
just an infrastructure tool? or is it something you foresee as useful for a
lastly, how often do you update notes? It's probably too late for this now,
but git, especially msys git can be especially slow, so I would have liked
the notes to be updated in batches to not slow down the testsuite run on
Which brings me to my next question, how resilient are you to failures
updating git? some IDE/environments like vscode automatically issue git
operations in the background. so git may be busy when you try to update and
the operation would fail saying the repo is locked. Does your new system
recover from such failures?
Also how do you deal with platform discrepancies? We've had in the past
tests that behave radically different on different platforms, so we've also
historically had the ability to record a platform specific value.
On Fri, Sep 1, 2017, 05:01 Jared Weakly <jweakly at pdx.edu> wrote:
> Hey y'all,
> A quick ToC before I dive right in:
> * What my HSOC project is on
> * My progress so far
> * Feedback welcome
> * What I have left to do
> * Theoretical potential improvements
> My HSOC project was on bringing sanity to the GHC performance test-suite.
> My blog post on this is here:
> The Trac ticket that corresponds to this is here:
> The Phabricator ticket for this patch:
> The tl;dr of my HSOC project is that GHC's performance tests currently
> require the programmer to add in expected numbers manually, updated
> them, handhold the testsuite, etc. This is a bit absurd and my
> project's overall aim is to reduce the effort required of the
> programmer to as close to zero as possible while simultaneously
> increasing the potential ability of the testsuite to catch regressions
> as much as possible.
> My progress so far:
> - I have a few comparison tools in perf_notes.py. These allow people
> to compare performance numbers of tests across commits
> - I have all the performance numbers generated by running the tests
> automatically stored in git notes and referenced by both the
> comparison tool and the testsuite
> - I have refactored the testsuite to use my new code that pulls
> expected numbers automatically from git notes (trivially passing if
> the note does not yet exist for that test), then it compares that
> expected number with the number that was gotten from running the
> testsuite on the latest commit. The comparison passes if it's within a
> certain deviation (20% by default, but can be customized by the
> - I have refactored all of the all.T files to use the new comparison
> functions for the performance tests and ensured that this doesn't
> break any existing tests.
> Anyone who wants to checkout the wip/perf-testsuite and try this out
> is more than welcome. Feedback on anything is welcome; comments are
> appreciated; discussion is welcome, etc.
> What I have left to do is:
> 1. Finish writing up the documentation
> 2. Update the wiki in all the relevant places concerning
> additions/modifications to the testsuite and test driver
> 3. Make sure everyone is happy with the change (and make small changes
> as necessary)
> Possible features and improvements I am thinking about adding in:
> * As a stopgap to full integration with performance tracking tools
> (such as Gipedia), optionally emitting a test warning with the test
> summary if there is any regression detected whatsoever (even if the
> number falls within the allowed deviation)
> * Some tests, such as T7702, have a somewhat nonsensical regression
> percentage. Ideally the testsuite could handle those better. I could
> potentially build in multiple ways to determine a regression
> (percentage, 'above a certain value', 'taking longer than X amount of
> time', as potential examples)
> * Currently some tests require installing some Haskell packages; they
> are skipped if the packages are not installed. I could try to build in
> a way to automatically attempt to install all necessary Haskell
> packages if someone attempts to run a test that requires them.
> (Perhaps using a command such as 'make test exhaustive')
> * The performance metric 'peak_megabytes' is sometimes not accurate
> enough; I could see if adding something like `RTS -h -i0.01`
> automatically to tests that use 'peak_megabytes' would resolve that.
> Currently it is a manual debugging step.
> Any thoughts? Comments? Questions?
> Jared Weakly
> ghc-devs mailing list
> ghc-devs at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs