grandma icon indicating copy to clipboard operation
grandma copied to clipboard

smaller output files

Open catdad opened this issue 10 years ago • 2 comments

Text files get really big really quickly. Think about something that would make these smaller... maybe gzipping?

catdad avatar Mar 25 '16 15:03 catdad

Gzipping is a cool idea, perhaps, but perf goes to shit, even though gzipping is done in the main thread and all tests are run in worker threads. Beats me why that would happen.

Results for the same test run with zipping on and off:

Gzipping off during the test run:

> grandma report file.txt

Summary    [duration, rate, total]  10s, 1000, 10000
Latencies  [mean, 50, 95, 99, max]  1.116ms, 0.947ms, 1.966ms, 3.156ms, 15.775ms

Gzipping on during the test run:

> grandma report file.gz

Summary    [duration, rate, total]  10s, 1000, 10000
Latencies  [mean, 50, 95, 99, max]  43.092ms, 1.085ms, 417.625ms, 819.250ms, 985.780ms

catdad avatar Mar 28 '16 02:03 catdad

All code is left in, but the CLI disables the use of gzipping. I will consider adding post-test gzipping in the future, if I get a good use case. At this point, large output files don't bother me that much.

catdad avatar Mar 28 '16 02:03 catdad