Skip to content

Instantly share code, notes, and snippets.

View while-loop's full-sized avatar

Anthony Alves while-loop

View GitHub Profile
@while-loop
while-loop / benchmark
Last active October 20, 2016 15:05 — forked from josephwegner/benchmark
Benchmark PhantomJS against cURL
#!/bin/bash
PREPHANTOMTIME=`date +%s%3N`
count="0"
while [ $count -lt $2 ];
do
phantomjs ./timer.js "$1" > /dev/null 2>&1
count=$[$count + 1]
done