OSDN Git Service

Regres: Further optimizations for coverage
authorBen Clayton <bclayton@google.com>
Mon, 30 Mar 2020 19:53:21 +0000 (20:53 +0100)
committerBen Clayton <bclayton@google.com>
Wed, 1 Apr 2020 15:27:42 +0000 (15:27 +0000)
commitdc5854e15cdec18e7321a9a6d7f3c7d288414dab
tree841297f90a79bec50b708a971339fc2f79b6ce21
parentc6e7b2a4d0209e01ee0ac1116820f92628b8e310
Regres: Further optimizations for coverage

Compress common spans into groups and index these.
Reduces the full coverage json from ~500MB to just under 100MB.

Use zlib compression on the final file instead of a zip. The compression algorithm is the same, and produces roughly the same sized output, but a raw zlib file is much quicker to decompress with pako instead of jszip.

Bug: b/152192800
Change-Id: Id444ddf4027b6ace03570719f159ae14e481cd37
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43249
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
tests/regres/cmd/regres/main.go
tests/regres/cmd/run_testlist/main.go
tests/regres/cov/coverage.go
tests/regres/cov/coverage_test.go