for x in {1..25}; do curl -i 'http://l7.0.lg.ustack.in:9696/v2.0/networks.json' -X GET -H "X-Auth-Token: 347e2a0caca040e287b6220663def507" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -w "%{time_total} " -o test.txt -s; done
If the time is varying a lot, we should pay attention to the neutron server's cpu consumption. If so, configure the api_workers configuration item.
another way to test the API is to
ab -c 2 -n 100 -H "X-Auth-Token: 347e2a0caca040e287b6220663def507" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" http://l7.0.lg.ustack.in:9696/v2.0/networks.json