Compare results of compress by hashing
authorSebastian Graf <sgraf1337@gmail.com>
Wed, 26 Dec 2018 12:45:33 +0000 (13:45 +0100)
committerSebastian Graf <sgraf1337@gmail.com>
Wed, 26 Dec 2018 13:04:37 +0000 (14:04 +0100)
commit042cf0be9e6f78a3b1474b568350916575202719
treee44ede908c62295c3f9e4121db85383382a1df54
parent44fc21a315d0da2377aa8fae93c48ba0b961dd9a
Compare results of compress by hashing

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
.gitignore
real/compress/Main.hs
real/compress/Makefile
real/compress/compress.faststdout
real/compress/compress.stdout [new file with mode: 0644]