speed up `--reduce-test` (#3726)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 17 Feb 2020 15:35:07 +0000 (15:35 +0000)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 15:35:07 +0000 (15:35 +0000)
commit53517db3e40e9a2b2a6cc64b0dd7dcef0305ec1e
tree1e9e4cc8aa519f8a569b1628dee6924393dd6814
parentc13caf487614d15cdc7d984fc5b4c558e728f0cf
speed up `--reduce-test` (#3726)

- avoid pathological test case branches via adaptive time-out
- use initial test case elapsed time to adjust maximum time-out
- index output cache using hash instead of raw source
test/mocha/reduce.js
test/reduce.js