File: compare-compiler-versions.sh

package info (click to toggle)
haskell-futhark 0.25.32-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,236 kB
  • sloc: haskell: 100,484; ansic: 12,100; python: 3,440; yacc: 785; sh: 561; javascript: 558; lisp: 399; makefile: 277
file content (20 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
#
# Quick hack to compare compiler revisions by automatically pulling
# statistics from futhark-lang.org/benchmark-results.
#
# Pass the reference version as the first argument.  You must run this
# while standing in the Futhark directory.

if [ $# -ne 4 ]; then
    echo "Usage: $0 <machine_a> <rev_a> <machine_b> <rev_b>" >&2
    exit 1
fi

RESULTS_URL=https://futhark-lang.org/benchmark-results/
a_url=$RESULTS_URL/$1-$2.json
b_url=$RESULTS_URL/$3-$4.json
echo "Fetching $a_url"
echo "     and $b_url"

futhark benchcmp <(curl "$a_url") <(curl "$b_url")