Skip to content

Instantly share code, notes, and snippets.

@joyeecheung
Last active Jan 25, 2018
Embed
What would you like to do?
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