Re: [PATCH 3/8] perf/aggregate: implement codespeed JSON output
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Dec 13, 2017, 18:25 UTC
- Message-ID
- <CAPig+cSev+U9Cchyz1c4uQUsf8O4N8vVGTAsa5FiSA5mTOekxA@mail.gmail.com>
- In-Reply-To
- <20171213151344.2138-4-chriscool@tuxfamily.org>
On Wed, Dec 13, 2017 at 10:13 AM, Christian Couder <christian.couder@gmail.com> wrote:
Show 21 quoted lines
> Codespeed (https://github.com/tobami/codespeed/) is an open source
> project that can be used to track how some software performs over
> time. It stores performance test results in a database and can show
> nice graphs and charts on a web interface.
>
> As it can be interesting to Codespeed to see how Git performance
> evolves over time and releases, let's implement a Codespeed output
> in "perf/aggregate.perl".
>
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> ---
> diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
> @@ -174,6 +181,63 @@ sub print_default_results {
> +sub print_codespeed_results {
> + my ($results_section) = @_;
> +
> + my $project = "Git";
> +
> + my $executable;
> + if ($results_section eq "") {
> + $executable = `uname -o -p`;Option -o is not recognized on MacOS and, on at least a couple of my Linux installations, -p returns only "unknown".
A combination, on the other hand, which seems to work nicely on MacOS, Linux, and BSD is: uname -s -m