Skip to content
  • Sebastian Graf's avatar
    Compare results of compress by hashing · 042cf0be
    Sebastian Graf authored
    Summary:
    We don't want the result in the repo as it's a sizeable binary file that
    doesn't compress well.
    
    Storing the output file in the repository becomes infeasible for large
    inputs. There are two possible remedies:
    
    1. Generate the result files during `make boot` (Phab:D5426). We
       discovered some drawbacks (like missing dependency files to build
       `compress` during boot) to this approach which make it infeasible.
    2. Shrink the output files, for example by hashing the string that we would
       normally output and compare that instead.
    
    This patch implements the second alternative. This somewhat distorts the
    runtime profile, so we might want to consider doing hashing within the
    benchmark runner in the future.
    
    Test Plan: make boot
    
    Reviewers: AndreasK, nomeata, O26 nofib, osa1
    
    Reviewed By: AndreasK, osa1
    
    Subscribers: osa1
    
    Differential Revision: https://phabricator.haskell.org/D5469
    042cf0be