Skip to content

Instantly share code, notes, and snippets.

@joyeecheung
Last active January 25, 2018 18:32
Show Gist options
  • Save joyeecheung/b55c88ee465d552d7ed1dc34e67305ea to your computer and use it in GitHub Desktop.
Save joyeecheung/b55c88ee465d552d7ed1dc34e67305ea to your computer and use it in GitHub Desktop.
Get the results of Node.js benchmark CI
#/usr/bin/env bash
# Saves CI results to bench-$JOBID.txt
# output of compare.R to bench-$JOBID-results.txt
JOBID=$1
wget https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/$JOBID/consoleText -O bench-$JOBID.txt
grep 'improvement' -A 10000 bench-$JOBID.txt > bench-$JOBID-results.txt
head -n 1 bench-$JOBID-results.txt > bench-$JOBID-significant.txt
grep '*' bench-$JOBID-results.txt >> bench-$JOBID-significant.txt
# Or if you don't want to save the results
# curl https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/$JOBID/consoleText | grep 'improvement' -A 10000 | grep -E 'improvement|\*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment