I am writing a client for a specific SOAP API. I get a huge runtime and therefore contacted the owner of the API who told me this:
The average GetPrices call duration, calculated from two sources that store call duration, shows the average duration for 5 days, which a player called our system just above 25 milliseconds, which corresponds to the average number of most players during the same time period. The two sources are Sentry Logs, which calculates the duration of calls between all component applications and the time taken from IISLogs, which includes the delivery time from our API server to the calling computer for players.
During the same 5 days for the same GetPrices call, I averaged 0.08-0.1s, which is 4 times more than the server logs show.
What could be causing such a big difference between my measurements and the measurements of the owner of the API?
The way to measure runtime is very simple:
start_time = time.time()
end_time = time.time() - start_time
Please let me know if there is anything else that I could provide.
source
share