diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-04 13:11:20 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-02-04 13:44:14 -0500 |
commit | c314adc4deb7cd43aa985ce2541e39588e4098cb (patch) | |
tree | daedd192da82551b82846fa2ee052ba3422bc9ab /cherrypy/test/benchmark.py | |
parent | 513d4bfef99e7e599bc60c7da745d18439567797 (diff) | |
download | cherrypy-git-c314adc4deb7cd43aa985ce2541e39588e4098cb.tar.gz |
Use bytes literals where appropriatev14.0.0
Diffstat (limited to 'cherrypy/test/benchmark.py')
-rw-r--r-- | cherrypy/test/benchmark.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cherrypy/test/benchmark.py b/cherrypy/test/benchmark.py index 5bfcf699..b57c1945 100644 --- a/cherrypy/test/benchmark.py +++ b/cherrypy/test/benchmark.py @@ -28,7 +28,6 @@ import sys import time import cherrypy -from cherrypy._cpcompat import ntob from cherrypy import _cperror, _cpmodpy from cherrypy.lib import httputil @@ -191,15 +190,15 @@ Finished 1000 requests parse_patterns = [ ('complete_requests', 'Completed', - ntob(r'^Complete requests:\s*(\d+)')), + br'^Complete requests:\s*(\d+)'), ('failed_requests', 'Failed', - ntob(r'^Failed requests:\s*(\d+)')), + br'^Failed requests:\s*(\d+)'), ('requests_per_second', 'req/sec', - ntob(r'^Requests per second:\s*([0-9.]+)')), + br'^Requests per second:\s*([0-9.]+)'), ('time_per_request_concurrent', 'msec/req', - ntob(r'^Time per request:\s*([0-9.]+).*concurrent requests\)$')), + br'^Time per request:\s*([0-9.]+).*concurrent requests\)$'), ('transfer_rate', 'KB/sec', - ntob(r'^Transfer rate:\s*([0-9.]+)')) + br'^Transfer rate:\s*([0-9.]+)') ] def __init__(self, path=SCRIPT_NAME + '/hello', requests=1000, |