knative-report/benchmark/classic/hotandcold.sh

20 lines
677 B
Bash

#! /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