{ "info": { "author": "Dylan Freedman", "author_email": "freedmand@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# CPU Profile\n\nThis is a simple package to measure CPU speed by calculating the time it takes to\ncompute Fibonacci numbers. It is useful in contexts where CPU speed is unknown or can\nfluctuate, such as cloud function environments, and can serve as a rough measure of how\nlong subsequent compute-intensive code will take to run.\n\n## Installation\n\n```sh\npip install cpuprofile\n```\n\n## Usage\n\n```python\nfrom cpuprofile import profile_cpu\n\n# Calculate the CPU speed by computing Fibonacci numbers.\n\nelapsed_time = profile_cpu()\n\n# elapsed_time is ~0.18 (seconds) on a 2.5 GHz Intel Core i7 2015 Macbook Pro.\n\n# Or, a number can be specified to calculate the nth Fibonacci (default: 28).\n\nelapsed_time = profile_cpu(15) # 15th Fibonacci; takes around 0.0006 seconds\nelapsed_time = profile_cpu(35) # 35th Fibonacci; takes about 5 seconds\n```\n\n## Credit\n\nThe minimalist approach of recursively calculating Fibonacci numbers as a way to profile\nthe CPU is inspired by:\n\n- Booth, J. (2015).\n [Not so incognito: Exploiting resource-based side channels in javascript engines](http://jombooth.com/static/thesis.pdf)\n (Undergraduate thesis, Harvard University).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/muckrock/cpuprofile", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cpuprofile", "package_url": "https://pypi.org/project/cpuprofile/", "platform": "", "project_url": "https://pypi.org/project/cpuprofile/", "project_urls": { "Homepage": "https://github.com/muckrock/cpuprofile" }, "release_url": "https://pypi.org/project/cpuprofile/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A simple Python package to profile CPU speed by computing the Fibonacci sequence", "version": "1.0.1" }, "last_serial": 5248475, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7112e4c7ea82deae7844b846241189f3", "sha256": "72d9f10fdd3128de5b02ea366b22b561048d788e040585ef0a6b8b9a169492b7" }, "downloads": -1, "filename": "cpuprofile-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7112e4c7ea82deae7844b846241189f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2458, "upload_time": "2019-05-09T17:04:00", "url": "https://files.pythonhosted.org/packages/a6/ca/9227a449bd1503e0d55f8fa26326099edae5de968ca3184d729e2f8ece26/cpuprofile-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b2d30fc88898e90eb23b64159544880", "sha256": "5a9afc01c99a39c6b1f9a10f98d45725df971150695ada6f13cb442736c174b7" }, "downloads": -1, "filename": "cpuprofile-1.0.0.tar.gz", "has_sig": false, "md5_digest": "8b2d30fc88898e90eb23b64159544880", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1983, "upload_time": "2019-05-09T17:04:02", "url": "https://files.pythonhosted.org/packages/07/62/824eac810854fa9783b16ad6530787892eed4482a89e517ca28279c76494/cpuprofile-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a84448dff75b2100dab84ae5b18258e6", "sha256": "9991e9c2af83cd4060aacfbaddcd324954d409bcdf676d0d549afa57435e1892" }, "downloads": -1, "filename": "cpuprofile-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a84448dff75b2100dab84ae5b18258e6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2456, "upload_time": "2019-05-09T17:16:07", "url": "https://files.pythonhosted.org/packages/48/c3/02813ed0da595c9d32a48098b44f09e1e282f618f4230e613871e4fc792e/cpuprofile-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61aadc2532a58290515858eb5e49da0f", "sha256": "774b5636b2619dcc75d240497b3bb62a43f167862a0eadf959ac55d294a17bca" }, "downloads": -1, "filename": "cpuprofile-1.0.1.tar.gz", "has_sig": false, "md5_digest": "61aadc2532a58290515858eb5e49da0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1986, "upload_time": "2019-05-09T17:16:09", "url": "https://files.pythonhosted.org/packages/9b/14/72a2d8fb3b7a97c2996262dfd3dd7ef2e7f0b7ce2f7eef35d539ce0ad492/cpuprofile-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a84448dff75b2100dab84ae5b18258e6", "sha256": "9991e9c2af83cd4060aacfbaddcd324954d409bcdf676d0d549afa57435e1892" }, "downloads": -1, "filename": "cpuprofile-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a84448dff75b2100dab84ae5b18258e6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2456, "upload_time": "2019-05-09T17:16:07", "url": "https://files.pythonhosted.org/packages/48/c3/02813ed0da595c9d32a48098b44f09e1e282f618f4230e613871e4fc792e/cpuprofile-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61aadc2532a58290515858eb5e49da0f", "sha256": "774b5636b2619dcc75d240497b3bb62a43f167862a0eadf959ac55d294a17bca" }, "downloads": -1, "filename": "cpuprofile-1.0.1.tar.gz", "has_sig": false, "md5_digest": "61aadc2532a58290515858eb5e49da0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1986, "upload_time": "2019-05-09T17:16:09", "url": "https://files.pythonhosted.org/packages/9b/14/72a2d8fb3b7a97c2996262dfd3dd7ef2e7f0b7ce2f7eef35d539ce0ad492/cpuprofile-1.0.1.tar.gz" } ] }