I am trying to benchmark a single request agains a webserver, and am having a problem doing so, specifically, I am having an issue redirecting the output of the time
command.
If i simply run
time curl "http://www.google.com"
my result is the full body response, followed by the printout from the time
command.
If i run it with redirection
time curl "http://www.google.com" 1> out.log 2> err.log
In out.log
I still see the body of the response, and in err.log
I see the output from the curl command
The problem however is that the output from the time
command is still printing to the terminal
[501] ~ > time curl "http://www.google.com" 1> out.log 2> err.log
real 0m0.092s
user 0m0.004s
sys 0m0.004s
[502] ~ > cat err.log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19093 0 19093 0 0 225k 0 --:--:-- --:--:-- --:--:-- 227k
To what buffer does time
output, and how canI get this into a file? From my understanding, it should have been piped into err.log
.