{"repo":"JoeyHendricks/python-benchmark-harness","free":true,"listed":false,"github":"https://github.com/JoeyHendricks/python-benchmark-harness","clone":"git clone https://github.com/JoeyHendricks/python-benchmark-harness.git","description":"A micro/macro benchmark framework for the Python programming language that helps with optimizing your software.","language":"Python","stars":159,"topics":["performance","testing","test-automation","testing-tools","performance-testing","performance-analysis","performance-monitoring","profiling","python","python-library"],"license":"MIT","category":"dev-tools","readme_excerpt":"Get your code off the couch by stressing it on the bench Contact me - Report Bug or Request Feature - Discussions - Documentation The project in a nutshell A micro/macro benchmark is an act of testing the performance of a framework, algorithm, routine, or application to make sure it has the performance you are expecting. python-benchmark-harness is therefore a library that aids in creating these micro or macro performance benchmarks for your code to find and visualize performance bottlenecks in your implementation in a flexible way. With an emphasis on automation and visualizations, this library can integrate your benchmarks within a unit test framework allowing you to test your code early in the development life cycle and letting you render an assortment of visualizations to get the drop on a pesky performance problem in your code. Installation Installation is easy using pip or clone the source code straight from GitHub. Getting Started After installing the package import the benchmarking object and define a benchmark name . Use the run() method to execute your benchmark on your creation and evaluate its performance. Below you can find a simple example that benchmarks your code non-intrusively: To start up a benchmarking session more flexibly you can also use the trace decorator called \"collect measurements\" . To do this you use \"collect measurements\" to decorator your code that you want to benchmark: Check out the documentation for more help to get started. Visualize that p","default_branch":null,"files":null,"tree":[],"storefront":"/r/JoeyHendricks","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JoeyHendricks/python-benchmark-harness/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}