nose-performance

Software Screenshot:
nose-performance
Software Details:
Version: 0.4.1
Upload Date: 20 Feb 15
Developer: Disqus
Distribution Type: Freeware
Downloads: 3

Rating: nan/5 (Total Votes: 0)

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.

Usage

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.

Test Cases

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

Captured Data

Currently the data captured includes hooks for the following:

- Redis
- Django ORM
- Django Cache

Requirements:

  • Python
  • nose

Similar Software

Other Software of Developer Disqus

gargoyle
gargoyle

20 Feb 15

django-modeldict
django-modeldict

20 Feb 15

django-perftools
django-perftools

20 Feb 15

Overseer
Overseer

11 May 15

Comments to nose-performance

Comments not found
Add Comment
Turn on images!