Skip to content

Instantly share code, notes, and snippets.

Avatar

Anthony while-loop

View GitHub Profile
@while-loop
while-loop / benchmark
Last active Oct 20, 2016 — forked from josephwegner/benchmark
Benchmark PhantomJS against cURL
View benchmark
#!/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