#!/usr/bin/env bash

# Create
echo
lsc $1 &
LOG=benchmarks.log
pid=$!

sleep 2
echo "For $1 $1" >> $LOG
# echo '' >> $LOG
wrk2 'http://localhost:3000/api/1/players' \
  -s ./test.lua \
  -d 10 \
  -c 100 \
  -t 2 \
  -R 2000
  # | grep 'Requests/sec' \
  # | awk '{ print "  " $2 }' >> $LOG

kill $pid
