Skip to content

Commit 6cfa633

Browse files
committed
Merge branch 'jk/perf-aggregate-wo-libjson'
The script to aggregate perf result unconditionally depended on libjson-perl even though it did not have to, which has been corrected. * jk/perf-aggregate-wo-libjson: t/perf: depend on perl JSON only when using --codespeed
2 parents 7a188da + f2e875d commit 6cfa633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/perf/aggregate.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use lib '../../perl/build/lib';
44
use strict;
55
use warnings;
6-
use JSON;
76
use Getopt::Long;
87
use Git;
98

@@ -342,7 +341,8 @@ sub print_codespeed_results {
342341
}
343342
}
344343

345-
print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
344+
require JSON;
345+
print JSON::to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
346346
}
347347

348348
binmode STDOUT, ":utf8" or die "PANIC on binmode: $!";

0 commit comments

Comments
 (0)