t/perf: add infrastructure for measuring sizes
authorJeff King <peff@peff.net>
Fri, 17 Aug 2018 20:56:37 +0000 (16:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Aug 2018 21:04:47 +0000 (14:04 -0700)
commit22bec79d1aef8fd82c7870e62f77b7817f0575a7
tree94931434d3aa851e4ee00084d4e5e37ad4359836
parent5a924a62bb0fc5524101aeec9086aee530c2244d
t/perf: add infrastructure for measuring sizes

The main objective of scripts in the perf framework is to
run "test_perf", which measures the time it takes to run
some operation. However, it can also be interesting to see
the change in the output size of certain operations.

This patch introduces test_size, which records a single
numeric output from the test and shows it in the aggregated
output (with pretty printing and relative size comparison).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/README
t/perf/aggregate.perl
t/perf/perf-lib.sh