Skip to content

Instantly share code, notes, and snippets.

@girvan
Created November 3, 2017 01:06
Show Gist options
  • Save girvan/4c5a91415b67f7e5538f79d8f5f0e031 to your computer and use it in GitHub Desktop.
Save girvan/4c5a91415b67f7e5538f79d8f5f0e031 to your computer and use it in GitHub Desktop.

Revisions

  1. girvan created this gist Nov 3, 2017.
    15 changes: 15 additions & 0 deletions testing.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    cd ~/tmp/

    url1=https://...
    url2=https://...
    url3=https://...


    for i in {1..500000}; do
    time1=$(curl -o /dev/null -s -w %{time_total} $url1)
    time2=$(curl -o /dev/null -s -w %{time_total} $url2)
    time3=$(curl -o /dev/null -s -w %{time_total} $url3)
    now=$(date +"%H:%M")
    echo -e "$now\t$time1\t$time2\t$time3" >> 100k.log
    sleep 60;
    done;