git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/3] perf/aggregate: sort JSON fields in output

From
Christian Couder <christian.couder@gmail.com>
Date
Jan 28, 2018, 11:18 UTC
Message-ID
<20180128111843.2690-3-chriscool@tuxfamily.org>
In-Reply-To
<20180128111843.2690-1-chriscool@tuxfamily.org>

It is much easier to diff the output against a preivous one when the fields are sorted.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 t/perf/aggregate.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
index d616d31ca8..fcc0313e65 100755
--- a/t/perf/aggregate.perl
+++ b/t/perf/aggregate.perl
@@ -253,7 +253,7 @@ sub print_codespeed_results {
 		}
 	}
 
-	print to_json(\@data, {utf8 => 1, pretty => 1}), "\n";
+	print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
 }
 
 binmode STDOUT, ":utf8" or die "PANIC on binmode: $!";
-- 
2.16.0.rc2.45.g09a1bbd803
Previous: Christian CouderNext: Philip Oakley
Message 5 of 6 in “perf/aggregate: add --subsection option”
  1. 1/3 perf/aggregate: add --subsection optionChristian Couder, Jan 28, 2018
  2. 2/3 perf/aggregate: add --reponame optionChristian Couder, Jan 28, 2018
  3. Eric SunshineJan 28, 2018
  4. Christian CouderJan 29, 2018
  5. 3/3 perf/aggregate: sort JSON fields in outputChristian Couder, Jan 28, 2018
  6. Philip OakleyJan 28, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.