From f28920156c811838f93186d4bb1289a11ce96050 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Tue, 7 Apr 2020 15:59:58 +0200 Subject: [PATCH] Modify benchmark accordingly to other scripts modifications --- tests/go/benchmark_tests.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/go/benchmark_tests.sh b/tests/go/benchmark_tests.sh index 99f21043..2bd6a59e 100755 --- a/tests/go/benchmark_tests.sh +++ b/tests/go/benchmark_tests.sh @@ -1,11 +1,12 @@ -#!/usr/bin/env bash +#!/bin/sh -set -euo pipefail +set -o errexit +set -o pipefail IFS=' ' -cd -P "$(dirname "$BASH_SOURCE")" +cd -P "$(dirname "$0")" -rm -rf student +./clean.sh cp -a solutions student go test -v -json|jq -c 'select(.Action == "pass") | {Test, Elapsed}' | jq -sr 'sort_by(.Elapsed) | .[-30:] | .[] | [.Elapsed, .Test] | @tsv'