From 7cb567446ed4d929af329dabcc4cef1d88a271fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 6 Dec 2019 23:54:40 +0100 Subject: [PATCH] Create hotandcold.sh --- benchmark/classic/hotandcold.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 benchmark/classic/hotandcold.sh diff --git a/benchmark/classic/hotandcold.sh b/benchmark/classic/hotandcold.sh new file mode 100644 index 0000000..5a8d45f --- /dev/null +++ b/benchmark/classic/hotandcold.sh @@ -0,0 +1,19 @@ +#! /usr/bin/env bash + +kuberhost=10.98.63.121 + +while true; do + +echo -e "Firing" + +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: helloworld-go.default.example.com" http://$kuberhost/ >> cold-go.csv +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: helloworld-go.default.example.com" http://$kuberhost/ >> hot-go.csv + +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: isprime-py.default.example.com" http://$kuberhost/ >> cold-py.csv +curl -s --output /dev/null --write-out "%{time_total}\n" --header "Host: isprime-py.default.example.com" http://$kuberhost/ >> hot-py.csv + +echo -e "Sleeping" + +sleep 2m + +done