Apache benchmark stress test

First, I am not sure if this is the right place to post the following question, but this is about performance metrics of LXD. ;(

Setup:
bare-metal -1-> lxd-host → lxdMachine(Apache web server)
bare-metal-1 → apache benchmark.
Network → default bridge, no extra configurations.

Running the script, I noticed that the last iteration in each iteration hangs for a long time, decreasing the performance of the test. It is also clear that all the other iterations runs as expected, and increasing the sleep time doesn’t help.

Thanks.

ulimit -n 100000
i=10000
j=100000
for i in {1000..9000..1000}; do
     for j in {10000..100000..10000}; do
 	ab -n ${j} -g ${i}-${j}.dat -c ${i} http://10.223.122.16/ > ${i}-${j}.txt
 	sleep 3m
     done
 done