<div dir="ltr"><div>Thanks Adam for pointing me in the righ direction. I've attempted a MR with some questions in them [1].</div><div><br></div><div>However, I have no clue about what this test [2] really does (why are there unused functions called `unusedXX` ?). <br></div><div>If someone could give me a quick overview, that would be great.</div><div><br></div><div><br></div><div>Cheers,<br></div><div><br></div><div>[1] MR 6457</div><div>[2] <a href="https://github.com/zachjs/ghc-issue-20261/blob/main/Parse.y">https://github.com/zachjs/ghc-issue-20261/blob/main/Parse.y</a></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 29, 2021 at 9:56 PM Adam Gundry <<a href="mailto:adam@well-typed.com">adam@well-typed.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Alexis,<br>
<br>
<br>
On 29/08/2021 17:42, Alexis Praga wrote:<br>
> As a intermediate beginner in Haskell, I want to try to tackle a small<br>
> issue for contributing to GHC.<br>
<br>
Welcome! Thanks for trying your hand at contributing to GHC.<br>
<br>
<br>
> I've looked into <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/20261" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/-/issues/20261</a>, but<br>
> it's not clear how to integrate a running time in a regression test.<br>
> <br>
> From what I understand, regression tests should be compared against<br>
> sucess/failure or a given output.<br>
> Should there be a hard-coded limit ? If that's the case, how could I<br>
> create such a test ?  I could not find a similar test in the source<br>
> code.<br>
<br>
Have a look in testsuite/tests/perf/compiler. That directory contains a<br>
number of compiler performance tests, which work by having the test<br>
runner compare metrics about the compilation run for the current commit<br>
vs. previous commits. The all.T file lists the tests to run and the<br>
metrics to collect.<br>
<br>
There's more details on the wiki:<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/wikis/building/running-tests/adding#performance-tests" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/-/wikis/building/running-tests/adding#performance-tests</a><br>
<br>
Hope this helps,<br>
<br>
Adam<br>
<br>
<br>
-- <br>
Adam Gundry, Haskell Consultant<br>
Well-Typed LLP, <a href="https://www.well-typed.com/" rel="noreferrer" target="_blank">https://www.well-typed.com/</a><br>
<br>
Registered in England & Wales, OC335890<br>
118 Wymering Mansions, Wymering Road, London W9 2NF, England<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br>   Alexis Praga  <br></div></div></div></div>