Browse Source

Modify benchmark accordingly to other scripts modifications

content-update
Xavier Petit 4 years ago committed by xpetit
parent
commit
f28920156c
  1. 9
      tests/go/benchmark_tests.sh

9
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'

Loading…
Cancel
Save