]> git.ipfire.org Git - thirdparty/tornado.git/commit
test: Use time.perf_counter instead of time.time for performance tests 3557/head
authorBen Darnell <ben@bendarnell.com>
Thu, 11 Dec 2025 03:00:03 +0000 (22:00 -0500)
committerBen Darnell <ben@bendarnell.com>
Thu, 11 Dec 2025 03:17:42 +0000 (22:17 -0500)
commit31431c9aecefeb64b4c2fddcff5a25eccc12e981
tree84b39e1c1d8f03c9d5596b4dd3b0f879c3fe9a00
parent07b5924706b1992ccc4c272365efcf46b08e8b0d
test: Use time.perf_counter instead of time.time for performance tests

On windows, time.time has low resolution (about 15ms), which makes
performance tests flaky. time.perf_counter has much higher resolution
and is the recommended way to measure elapsed time.
tornado/test/httputil_test.py