{ "info": { "author": "Jeffrey R. Spies", "author_email": "jspies@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: System :: Benchmark" ], "description": "=========\nbenchmark\n=========\n\n``benchmark`` is a Python benchmarking framework, similar to Steve Purcell's \n``unittest`` in basic structure. It's as simple as::\n\n import benchmark\n\n import math\n \n class Benchmark_Sqrt(benchmark.Benchmark):\n\n each = 100 # allows for differing number of runs\n\n def setUp(self):\n # Only using setUp in order to subclass later\n # Can also specify tearDown, eachSetUp, and eachTearDown\n self.size = 25000\n\n def test_pow_operator(self):\n for i in xrange(self.size):\n z = i**.5\n\n def test_pow_function(self):\n for i in xrange(self.size):\n z = pow(i, .5)\n\n def test_sqrt_function(self):\n for i in xrange(self.size):\n z = math.sqrt(i)\n\n class Benchmark_Sqrt2(Benchmark_Sqrt):\n # Subclass the previous benchmark to change input using\n # self.setUp()\n\n label = \"Benchmark Sqrt on a larger range\"\n # The above label comes from the class name, this oen\n # comes from the label attribute\n\n each = 50\n\n def setUp(self):\n self.size = 750000\n \n if __name__ == '__main__':\n benchmark.main(format=\"markdown\", numberFormat=\"%.4g\")\n # could have written benchmark.main(each=50) if the\n # first class shouldn't have been run 100 times.\n\nwhich produces::\n\n Benchmark Report\n ================\n\n Benchmark Sqrt\n --------------\n\n name | rank | runs | mean | sd | timesBaseline\n --------------|------|------|----------|-----------|--------------\n pow operator | 1 | 100 | 0.004163 | 0.0001469 | 1.0\n sqrt function | 2 | 100 | 0.004584 | 0.000379 | 1.10126499627\n pow function | 3 | 100 | 0.005496 | 0.0002709 | 1.32031909568\n\n Benchmark Sqrt on a larger range\n --------------------------------\n\n name | rank | runs | mean | sd | timesBaseline\n --------------|------|------|--------|----------|--------------\n pow operator | 1 | 50 | 0.1265 | 0.004772 | 1.0\n sqrt function | 2 | 50 | 0.1375 | 0.004729 | 1.08705384\n pow function | 3 | 50 | 0.1649 | 0.003935 | 1.30357975885\n\n Each of the above 450 runs were run in random, non-consecutive order by\n `benchmark` v0.1.4 (http://jspi.es/benchmark) with Python 2.7.1\n Darwin-11.3.0-x86_64 on 2012-04-17 19:43:01.\n\nMore examples are available in the example folder or visit \nhttp://jspi.es/benchmark for more information.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://jspi.es/benchmark", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "benchmark", "package_url": "https://pypi.org/project/benchmark/", "platform": "any", "project_url": "https://pypi.org/project/benchmark/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://jspi.es/benchmark" }, "release_url": "https://pypi.org/project/benchmark/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "Python benchmarker / benchmarking framework", "version": "0.1.5" }, "last_serial": 786795, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f613976503de0b6f6cdf76e0b4137f1f", "sha256": "a6c79d89ba55d739ed1297ee6f951a67755b389e7ca2cccf37e0086638dff0d0" }, "downloads": -1, "filename": "benchmark-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f613976503de0b6f6cdf76e0b4137f1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6367, "upload_time": "2012-04-16T21:15:09", "url": "https://files.pythonhosted.org/packages/ee/60/b058ba38853dcb6ed8af261551d5afc6c610a66f0d241646dae4daeccb76/benchmark-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "feb78f57056d5b07c82de8f1a546adb2", "sha256": "f6f8b6181d7d95d3695de198669766a0f2de6304991db7727ddee029f2599454" }, "downloads": -1, "filename": "benchmark-0.1.1.tar.gz", "has_sig": false, "md5_digest": "feb78f57056d5b07c82de8f1a546adb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6662, "upload_time": "2012-04-16T21:50:40", "url": "https://files.pythonhosted.org/packages/91/2e/4084d287ecee6ce2674df780e7efb1458cd7150e959640c1a6dae820361b/benchmark-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a62dc20d16bd3e6ca5a20dd6574c56ca", "sha256": "e5863076cf01f12c0b29b62b59d34d130b93d56789adb5d68e46368f405f65bd" }, "downloads": -1, "filename": "benchmark-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a62dc20d16bd3e6ca5a20dd6574c56ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6663, "upload_time": "2012-04-16T21:52:44", "url": "https://files.pythonhosted.org/packages/82/a2/35fc97f5761a8d6660bf71f2e4e7fb6ebdae06000c6dc4786a6c0eae5f75/benchmark-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "45aea2d820d9f0a944447226ff5eb21e", "sha256": "206d12554b588159449c137103f1419a00da11ac621148c529e13dc184e2a308" }, "downloads": -1, "filename": "benchmark-0.1.3.tar.gz", "has_sig": false, "md5_digest": "45aea2d820d9f0a944447226ff5eb21e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7255, "upload_time": "2012-04-17T18:49:04", "url": "https://files.pythonhosted.org/packages/a7/31/41851e14e6a679634d462afa85cc60f2c4fce17344b10f95493e464ef469/benchmark-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "d224595b959d1ca81661374a22ed332b", "sha256": "7078788f458a928ec78e73832085c6d3db4730fd152f026c7a43b78651ee8344" }, "downloads": -1, "filename": "benchmark-0.1.4.tar.gz", "has_sig": false, "md5_digest": "d224595b959d1ca81661374a22ed332b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7402, "upload_time": "2012-04-17T21:42:01", "url": "https://files.pythonhosted.org/packages/15/72/3dba68f46851ddb94a230b2227de695fd6140ac09846591961c25fc46590/benchmark-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "556c4bca43c8dcd5b484dae1d6193049", "sha256": "0f87b25665831d2ed8e15e6826fa489e0b3b66db30ec6881d3200b5b32fd7c23" }, "downloads": -1, "filename": "benchmark-0.1.5.tar.gz", "has_sig": false, "md5_digest": "556c4bca43c8dcd5b484dae1d6193049", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7136, "upload_time": "2012-04-17T21:44:53", "url": "https://files.pythonhosted.org/packages/e9/af/e0390a38d8d8920a189775102d69fa19107c0b67f75c7934bc166e05d504/benchmark-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "556c4bca43c8dcd5b484dae1d6193049", "sha256": "0f87b25665831d2ed8e15e6826fa489e0b3b66db30ec6881d3200b5b32fd7c23" }, "downloads": -1, "filename": "benchmark-0.1.5.tar.gz", "has_sig": false, "md5_digest": "556c4bca43c8dcd5b484dae1d6193049", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7136, "upload_time": "2012-04-17T21:44:53", "url": "https://files.pythonhosted.org/packages/e9/af/e0390a38d8d8920a189775102d69fa19107c0b67f75c7934bc166e05d504/benchmark-0.1.5.tar.gz" } ] }