summaryrefslogtreecommitdiff
path: root/cherrypy/test/benchmark.py
Commit message (Collapse)AuthorAgeFilesLines
* Initialize in a function so it's not invoked on importJason R. Coombs2018-05-111-22/+28
|
* Remove reference to timeout_monitor, removedJason R. Coombs2018-05-111-1/+0
|
* Use bytes literals where appropriatev14.0.0Jason R. Coombs2018-02-041-6/+5
|
* Feed the hobgoblins (delint).Jason R. Coombs2017-10-271-2/+2
|
* Remove unused variable and enumeration.Jason R. Coombs2017-07-101-1/+1
|
* PEP8fy codebase: eliminated F822 flake8 errorSviatoslav Sydorenko2017-03-111-1/+1
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-57/+57
| | | | pre-commit run double-quote-string-fixer --all-files
* Fix E402 in test/benchmarkSviatoslav Sydorenko2016-09-081-2/+2
|
* Fix flake8 error: F401 '<mod>' imported but unusedSviatoslav Sydorenko2016-08-241-1/+0
|
* Remove the deperecated backward compatibility for legacy config keys in the ↵Jason R. Coombs2016-07-241-1/+1
| | | | engine.
* Use expose decorator throughout the codebase.Jason R. Coombs2016-06-051-3/+3
|
* More PEP8 work.Gustavo Picon2014-01-121-16/+18
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-15/+26
| | | | | --HG-- branch : autopep8
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-031-31/+31
| | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
* Use an arbitrary high port (54583) instead of a common lower port (8080) for ↵Joseph Tate2011-09-231-6/+6
| | | | running tests
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+409
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-409/+0
| | | | goes in the py2 folder, and we can use a single setup.py to install either, depending on the version of Python that runs setup.py install.
* Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.Robert Brewer2011-02-241-20/+21
|
* trunk sync with python3Robert Brewer2011-02-231-2/+2
|
* Some cross ports from the python3 branch, including two test fixes.Robert Brewer2009-06-241-3/+7
|
* Removed py3print.Robert Brewer2009-06-141-18/+18
|
* trunk - adding a py3util module that will normalize as many differences ↵Lakin Wecker2009-06-011-20/+20
| | | | between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
* trunk - cosmetic change bringing this file more inline with the python3 versionLakin Wecker2009-05-311-1/+1
|
* trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to ↵Lakin Wecker2009-05-311-2/+2
| | | | maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
* Print PID in test suite.Robert Brewer2008-03-071-0/+2
|
* Repaired benchmark.py from some bus changes.Robert Brewer2008-02-291-2/+1
|
* Fix for #756 (Deprecate server.quickstart):Robert Brewer2008-01-121-1/+0
| | | | | | * server.quickstart now does nothing but raise a warning. * Made 'root' argument to cherrypy.quickstart optional (to make tutorials easier, but it applies broadly). * Removed all calls to server.quickstart.
* Fix for #751 (logging: Python file objects are not thread-safe). Whew. ↵Robert Brewer2007-11-141-1/+1
| | | | | | | | | Finally got all the bus operations where I want em: 1. There's a new EXITING state 2. bus.block() waits for EXITING now instead of STOPPED, and also wait for all threads to exit, so the main thread doesn't exit (and run atexit callbacks) too early. 3. bus.exit() no longer calls sys.exit. Instead, exit is used to signal the main thread to unblock and terminate normally. This means some callers of stop need(ed) to be changed to call exit instead. 4. bus.block() no longer takes a state arg; it's now only for use by the main thread. Call bus.wait(state) to wait for other states.
* Marking 3.1beta.Robert Brewer2007-10-281-1/+1
|
* Finished porting [1711] to trunk.Robert Brewer2007-09-271-2/+0
|
* Use explicit IPv4 127.0.0.1 instead of localhost in benchmark.Robert Brewer2007-09-271-5/+5
|
* New pywebd module. Trunk is now "3.1alpha".Robert Brewer2007-03-051-2/+2
|
* Fix for #636 (Move wsgiserver.py into a subdirectory for cleaner ↵Robert Brewer2007-01-071-1/+1
| | | | svn:externals links). Reinstated wsgiserver as a subpackage. Also set version to 3.0.1alpha.
* Benchmark now prints traceback on error in read_process.Robert Brewer2006-12-281-2/+7
|
* A couple more speed tweaks.Robert Brewer2006-12-231-4/+5
|
* wsgiserver: replaced rfc822.Message + parse_headers method with a single ↵Robert Brewer2006-12-231-1/+3
| | | | | | read_headers method. This saves a pass on parsing headers (as well as a lot of lower() calls and such). benchmark: removed InternalRedirect from pipeline.
* wsgiserver: Moved 'bind' inner func out to method so subclasses can override ↵Robert Brewer2006-12-231-0/+1
| | | | socket options more easily.
* Benchmark:Robert Brewer2006-12-231-4/+41
| | | | | | | 1. Turned off default tools. 2. New index page for testing in a browser. 3. Added row of averages to thread report. 4. Fixed bug in stop.
* Changing version to 3.0.0beta.cherrypy-3.0.0betaRobert Brewer2006-09-041-1/+1
|
* API and docstring cleanups:Robert Brewer2006-08-261-1/+1
| | | | | | | | 1. Removed WrongConfigValue, decorate, decorate_all, and ExposeItems. 2. Moved cherrypy.logtime to cherrypy.log.time. 3. Reduced cherrypy.config.globalconf back to just cherrypy.config. 4. Moved _cpconfig.default_conf to config.defaults. .
* More (final?) config overhaul work:Robert Brewer2006-08-251-5/+5
| | | | | | | | | | 1. Removed cherrypy.config.get! Instead, you should directly inspect cherrypy.request, response, server, etc. Note that request.config.get still works fine. 2. a) cherrypy.log is now an instance of LogManager. It's still callable, but now is the object you inspect instead of calling config.get("log*"). b) cherrypy.log_access is now cherrypy.log.access. 3. All threads should now have access to default Request and Response objects, not just the main thread. 4. deadlock.timeout is now request.timeout. 5. Renamed config.py to _cpconfig.py; cherrypy.config is now an instance of _cpconfig.Config. I still need to decide what to do about log_config (removed for now).
* Overhaul of config system:Robert Brewer2006-08-241-3/+2
| | | | | | | | | | | | | | | | | 1. New docstring for config module! 2. Put all entries into a config namespace. New deadlock, log, request and response namespaces. 3. Request and response entries now directly modify attributes of cherrypy.request and .response, and consumer code looks up those attributes, not config. This also allows interactive inspection of defaults. 4. Removed 'log_config' config entry. Use engine.on_start_engine_list.append(config.log_config) instead. 5. Old 'dispatch' entry is now 'request.dispatch'. 6. New log entries: log.error.file, log.error.function, log.access.file, log.access.function, log.screen. 7. 'server.max_request_body_size' is now 'request.max_body_size'. 8. environments now only apply to globalconf. 9. The 'development' environment has been removed, since its settings were all the default anyway. 10. The 'embedded' environment has been removed, since it duplicates the 'production' environment now. 11. There's a new 'test_suite' environment. 12. Removed log_file_not_found (from static.py). Something still needs to be done to config.wrap, so it can take dotted names as kwarg keys.
* More tests for persistent connections, including pipelining.Robert Brewer2006-08-201-1/+1
|
* Moved some Apache control code from benchmark to _cpmodpy, where it can be ↵Robert Brewer2006-08-181-71/+26
| | | | more useful.
* WSGI improvements from Christian's cp3-wsgi-remix branch:Robert Brewer2006-08-171-1/+1
| | | | | | | | | 1. cherrypy.Application is now a WSGI callable. 2. cherrypy.tree may now be used as a WSGI dispatcher by simply calling it. This replaces the _cpwsgi.wsgiApp function. 3. You may now mount arbitrary WSGI apps using tree.graft(wsgi callable, script name). 4. If you set an Application object's script_name to None, it will try to pull script_name from cherrypy.request.wsgi_environ['SCRIPT_NAME']. There's a new test_wsgiapps.py (copied from the branch) which helps demonstrate the changes.
* Replaced request.remote_addr, remote_port, and remote_host with a single ↵Robert Brewer2006-08-071-1/+1
| | | | "remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
* WSGI-related changes:Robert Brewer2006-08-071-1/+1
| | | | | | | 1. Changed Request.run from request_line arg to deconstructed args: method, path, query_string, and protocol. 2. Moved HTTP protocol checking from _cprequest to _cpwsgiserver. What was cherrypy.response.version is now cherrypy.request.protocol (tuple form of SERVER_PROTOCOL). request.version and response.version attributes removed. _cpwsgiserver now writes out server.protocol, not SERVER_PROTOCOL (which is a misnomer, it really should have been REQUEST_PROTOCOL). 3. path unquoting was also moved from _cprequest to _cpwsgiserver (like most other WSGI servers). 4. New test for absoluteURI in the Request-Line.
* Changed server.start to server.quickstart, and server.start_all to server.start.Robert Brewer2006-08-051-1/+1
|
* benchmark still needed socket-error suppression.Robert Brewer2006-07-101-0/+7
|
* Updated benchmark to work with new _cpmodpy module.Robert Brewer2006-06-201-29/+39
|