A plugin for Nose for running performance tests. #Nose plugin #Performance tests #Nose #Plugin #Performance #Tests
nose-performance is a performance testing plugin for Nose. It's primary goal is to monitor calls to network applications, such as the database and memcache.
Integrates with Zumanji to report and archive results.
Create some tests which inherit from PerformanceTest:
from noseperf.testcases import PerformanceTest
class MyTest(PerformanceTest): def test_redis(self): client = Redis() for x in xrange(2 ** 16): client.add('test-%x' % x, '1')
Run your test suite with the --with-performance option:
python runtests.py --with-performance example/
(We're using runtests.py because we inject django-nose to test our Django hooks)
Results are recorded to test_results/performance.json by default: ls -lh test_results total 2128 -rw-r--r-- 1 dcramer staff 1.0M Aug 27 18:10 performance.json
See the included tests in example/ and nosetests --help | grep performance for more information.
The plugin will only collect tests which inherit from PerformanceTest. Included are two simple test cases, one for generic installs, and one for Django:
- noseperf.testcases.PerformanceTest - noseperf.testcases.DjangoPerformanceTest
Currently the data captured includes hooks for the following:
- Redis - Django ORM - Django Cache
System requirements
nose-performance 0.4.1
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- nose-performance-0.4.1.tar.gz
- main category:
- Programming
- developer:
- visit homepage
Microsoft Teams 24060.2623.2790.8046 Home / 1.7.00.7956 Work
calibre 7.8.0
IrfanView 4.67
paint.net 5.0.13 (5.13.8830.42291)
Windows Sandbox Launcher 1.0.0
Bitdefender Antivirus Free 27.0.35.146
7-Zip 23.01 / 24.04 Beta
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
Zoom Client 6.0.0.37205
ShareX 16.0.1
- 4k Video Downloader
- Zoom Client
- ShareX
- Microsoft Teams
- calibre
- IrfanView
- paint.net
- Windows Sandbox Launcher
- Bitdefender Antivirus Free
- 7-Zip