{ "info": { "author": "Simon Percivall", "author_email": "percivall@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "=============\nBetter Timeit\n=============\n\n.. image:: https://badge.fury.io/py/bettertimeit.png\n :target: http://badge.fury.io/py/bettertimeit\n\n.. image:: https://travis-ci.org/simonpercivall/bettertimeit.png?branch=master\n :target: https://travis-ci.org/simonpercivall/bettertimeit\n\n.. image:: https://pypip.in/d/bettertimeit/badge.png\n :target: https://crate.io/packages/bettertimeit?version=latest\n\n\nA Better Timeit\n\n* Free software: BSD license\n* Documentation: http://bettertimeit.rtfd.org.\n\nExample\n-------\n\n``bettertimeit`` will time any function which is named \"timeit\\_\".\nThe \"timeit\\_\" functions may be contained within a function or in a module.\nEach \"timeit\\_\" function will be timed separately::\n\n from bettertimeit import bettertimeit\n\n def container():\n a = 5\n\n def timeit_calculation():\n a**10\n\n b = 3\n\n def timeit_calculation_2():\n a**b\n\n bettertimeit(container)\n\n\nTo run timings from setup.py, you could add this to :func:`setup`::\n\n setup(\n ...\n timeit_suite=\"timings\",\n )\n\n\nAnd then run::\n\n % python setup.py timeit\n\n\nThis would run timeit functions in ``timings.py``.\n\nFeatures\n--------\n\n* Lets you write your timing test code as regular code instead of strings,\n but without the overhead of a function call.\n* Put your timing test code in a module or inside a function\n* Uses the same method as timeit.main to calculate the optimal number of\n passes to run.\n* Adds a ``timeit_suite`` option to setup() in setup.py, and a distutils\n command ``timeit`` to run timings from setup.py.\n\n\n=========\nChangelog\n=========\n\nHere's the recent changes to Better Timeit.\n\n.. changelog::\n :version: 1.1.1\n :released: 2014-05-02\n\n .. change::\n :tags: general\n\n Add a target-time option to the distutils command, to tune the target time\n for each run.\n\n.. changelog::\n :version: 1.1\n :released: 2014-04-29\n\n .. change::\n :tags: general\n\n Add a distutils command to run timings from setup.py. Also add a\n setup() flag ``timeit_suite`` to set timeit module in setup.py.\n\n.. changelog::\n :version: 1.0.1\n :released: 2014-04-29\n\n .. change::\n :tags: general\n\n A version that actually works: the 1.0 release didn't extract the body\n of the timeit function.\n\n.. changelog::\n :version: 1.0\n :released: 2014-04-28\n\n .. change::\n :tags: general\n\n First version.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/simonpercivall/bettertimeit", "keywords": "bettertimeit", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "bettertimeit", "package_url": "https://pypi.org/project/bettertimeit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bettertimeit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/simonpercivall/bettertimeit" }, "release_url": "https://pypi.org/project/bettertimeit/1.1.2/", "requires_dist": null, "requires_python": null, "summary": "A Better Timeit", "version": "1.1.2" }, "last_serial": 1125443, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "a7a4731fbdac4048380226e8109b18fc", "sha256": "2cb74b48bd3ab09f968d25dede3af051725e8b82a30a132a43f73ebdb0d46d73" }, "downloads": -1, "filename": "bettertimeit-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a7a4731fbdac4048380226e8109b18fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7242, "upload_time": "2014-04-29T09:44:10", "url": "https://files.pythonhosted.org/packages/50/de/377397f1774ebb533c42d0b85a4d2ca24566067de66c679f3400e64e4014/bettertimeit-1.0.1.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "b75020dc735fd738ee69cf05aca3c160", "sha256": "9cc031ae74fbe2eb5884c5ebcca74531d781b5bfaf38f238af64b0bdb0195470" }, "downloads": -1, "filename": "bettertimeit-1.1.tar.gz", "has_sig": false, "md5_digest": "b75020dc735fd738ee69cf05aca3c160", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7664, "upload_time": "2014-04-29T10:51:52", "url": "https://files.pythonhosted.org/packages/9b/78/5396962598240d14ef4c58a218d327d49f317186ff2bc64f575d926b7a57/bettertimeit-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1ed764f7d6a077f6c5d4e2f32a3dd15e", "sha256": "dd34e0380a492a742a348f780dc23cf18d1384dec0272e1ba98c0367d7118901" }, "downloads": -1, "filename": "bettertimeit-1.1.1.tar.gz", "has_sig": false, "md5_digest": "1ed764f7d6a077f6c5d4e2f32a3dd15e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8081, "upload_time": "2014-05-02T10:33:32", "url": "https://files.pythonhosted.org/packages/d7/3c/e0a1d11cb7367c621785c0e6ad7712a037a04d81415f459e8359b37cba34/bettertimeit-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "2f4bfde640bc69f696ed9011fc4558db", "sha256": "bdfa1dc32bf324d07f150a4bf6819abd07dba2b2d8bf2f9861d96a8c6a1f38b4" }, "downloads": -1, "filename": "bettertimeit-1.1.2.tar.gz", "has_sig": false, "md5_digest": "2f4bfde640bc69f696ed9011fc4558db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8078, "upload_time": "2014-06-15T12:50:37", "url": "https://files.pythonhosted.org/packages/2a/47/72fcfc8d3a49d847e20739d447f7b44084e2302f317fe3ee1fba374d9fe2/bettertimeit-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f4bfde640bc69f696ed9011fc4558db", "sha256": "bdfa1dc32bf324d07f150a4bf6819abd07dba2b2d8bf2f9861d96a8c6a1f38b4" }, "downloads": -1, "filename": "bettertimeit-1.1.2.tar.gz", "has_sig": false, "md5_digest": "2f4bfde640bc69f696ed9011fc4558db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8078, "upload_time": "2014-06-15T12:50:37", "url": "https://files.pythonhosted.org/packages/2a/47/72fcfc8d3a49d847e20739d447f7b44084e2302f317fe3ee1fba374d9fe2/bettertimeit-1.1.2.tar.gz" } ] }