Skip to content

Instantly share code, notes, and snippets.

@masak
Last active August 29, 2015 14:13
Show Gist options
  • Save masak/0714a0d412f2ab4e5f12 to your computer and use it in GitHub Desktop.
Save masak/0714a0d412f2ab4e5f12 to your computer and use it in GitHub Desktop.
Measuring the time it takes to run a script with a certain number of database roundtrips
TIME moves placements swaps resigns timeouts TOTAL req/s s/req
================================================================================================
47m36.012s 18770 18314 225 443 13 37765 13.22 0.075
36m51.226s 9385 18314 225 443 13 28380 12.83 0.078
@japhb
Copy link

japhb commented Jan 12, 2015

req/s and s/req just look like inverses. But I'd be curious if you've reached the point that the main script code is dominating the runtime -- so that if you averaged just the time of the DB requests, if s/req would trend to a bound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment