{ "info": { "author": "Michael Seifert", "author_email": "michaelseifert04@yahoo.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: System :: Benchmark", "Topic :: Utilities" ], "description": "simple_benchmark\n================\n\nA simple benchmarking package.\n\nDocumentation\n-------------\n\n.. image:: https://readthedocs.org/projects/simple-benchmark/badge/?version=stable\n :target: http://simple-benchmark.readthedocs.io/en/stable/?badge=stable\n :alt: Documentation Status\n\n.. image:: https://readthedocs.org/projects/simple-benchmark/badge/?version=latest\n :target: http://simple-benchmark.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\nDownloads\n---------\n\n.. image:: https://img.shields.io/pypi/v/simple_benchmark.svg\n :target: https://pypi.python.org/pypi/simple_benchmark\n :alt: PyPI Project\n\n.. image:: https://img.shields.io/github/release/MSeifert04/simple_benchmark.svg\n :target: https://github.com/MSeifert04/simple_benchmark/releases\n :alt: GitHub Project\n\n\nInstallation\n------------\n\nUsing ``pip``:\n\n.. code::\n\n python -m pip install simple_benchmark\n\nOr installing the most recent version directly from ``git``:\n\n.. code::\n\n python -m pip install git+https://github.com/MSeifert04/simple_benchmark.git\n\nTo utilize the all features of the library (for example visualization) you need to\ninstall the optional dependencies:\n\n- `NumPy `_\n- `pandas `_\n- `matplotlib `_\n\nOr install them automatically using:\n\n.. code::\n\n python -m pip install simple_benchmark[optional]\n\nGetting started\n---------------\n\nSuppose you want to compare how NumPys sum and Pythons sum perform on lists\nof different sizes::\n\n >>> from simple_benchmark import benchmark\n >>> import numpy as np\n >>> funcs = [sum, np.sum]\n >>> arguments = {i: [1]*i for i in [1, 10, 100, 1000, 10000, 100000]}\n >>> argument_name = 'list size'\n >>> aliases = {sum: 'Python sum', np.sum: 'NumPy sum'}\n >>> b = benchmark(funcs, arguments, argument_name, function_aliases=aliases)\n\nThe result can be visualized with ``pandas`` (needs to be installed)::\n\n >>> b\n Python sum NumPy sum\n 1 9.640884e-08 0.000004\n 10 1.726930e-07 0.000004\n 100 7.935484e-07 0.000008\n 1000 7.040000e-06 0.000042\n 10000 6.910000e-05 0.000378\n 100000 6.899000e-04 0.003941\n\nOr with ``matplotlib`` (has to be installed too)::\n\n >>> b.plot()\n\nTo save the plotted benchmark as PNG file::\n\n >>> import matplotlib.pyplot as plt\n >>> plt.savefig('sum_example.png')\n\n.. image:: ./docs/source/sum_example.png", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MSeifert04/simple_benchmark", "keywords": "performance timing timeit", "license": "Apache License Version 2.0", "maintainer": "", "maintainer_email": "", "name": "simple-benchmark", "package_url": "https://pypi.org/project/simple-benchmark/", "platform": "Windows Linux Mac OS-X", "project_url": "https://pypi.org/project/simple-benchmark/", "project_urls": { "Homepage": "https://github.com/MSeifert04/simple_benchmark" }, "release_url": "https://pypi.org/project/simple-benchmark/0.0.9/", "requires_dist": null, "requires_python": "", "summary": "A simple benchmarking package.", "version": "0.0.9" }, "last_serial": 5110461, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "333186363669d4193dedf8fb11e4926e", "sha256": "3352633ab91064e4ceab62b19abf11b19f72cdc25e82ec5d00fa0b1fa26c268b" }, "downloads": -1, "filename": "simple_benchmark-0.0.1.tar.gz", "has_sig": false, "md5_digest": "333186363669d4193dedf8fb11e4926e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4286, "upload_time": "2018-02-19T17:28:10", "url": "https://files.pythonhosted.org/packages/a6/f6/a92c59158c5d4efd91fb507e680db145181cc5b51bd6579169c5eab8e913/simple_benchmark-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "144915ddf48ebe8c1194b3adae2e1d2a", "sha256": "6d4402f2440b7d91e372732477d6276e33814b99ca896f8037418ab92387ba18" }, "downloads": -1, "filename": "simple_benchmark-0.0.2.tar.gz", "has_sig": false, "md5_digest": "144915ddf48ebe8c1194b3adae2e1d2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5459, "upload_time": "2018-04-09T21:07:46", "url": "https://files.pythonhosted.org/packages/5d/ef/e975c196c55bff8a9a232ae65138ca9f5506c23d1821fc6b4101b0a3a19a/simple_benchmark-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1ae2750b1fef932d59e8532d3e89fde6", "sha256": "855c8402af67297cd7e8cb5310df6d4a4ef63da102fd8e18fd87b18204cfe3b7" }, "downloads": -1, "filename": "simple_benchmark-0.0.3.tar.gz", "has_sig": false, "md5_digest": "1ae2750b1fef932d59e8532d3e89fde6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5466, "upload_time": "2018-04-15T22:09:12", "url": "https://files.pythonhosted.org/packages/5a/a8/e3bb54e1e7c2aa44b83efebc6eb3bc5d65b4520ad2b070ab15be340e7927/simple_benchmark-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8b7f02cedfcd1e0aa3a8ded6a7aaba9d", "sha256": "535b08a394b3850a4af238f2795dc8edc96570b62fc06dc41177fdc066075eb1" }, "downloads": -1, "filename": "simple_benchmark-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8b7f02cedfcd1e0aa3a8ded6a7aaba9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5689, "upload_time": "2018-04-19T19:04:09", "url": "https://files.pythonhosted.org/packages/31/e8/731a7be7ff3493cd87e36289ca3c2e97ac4eea0b2d947cbbce14a100e5b7/simple_benchmark-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "ef30c4680b6c9258480dcea5b87fe832", "sha256": "c06487cbed16d95e0441bda751dedcc021237be4426268fa0670d5d422a86a15" }, "downloads": -1, "filename": "simple_benchmark-0.0.5.tar.gz", "has_sig": false, "md5_digest": "ef30c4680b6c9258480dcea5b87fe832", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5926, "upload_time": "2018-04-22T12:22:27", "url": "https://files.pythonhosted.org/packages/18/5b/91efcc8d52f1ccf0b35a6da7ad1086d17ae0182b67ac608b08769c1e5896/simple_benchmark-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "35ac5005ba9ccbccd87018ab0e31ea0c", "sha256": "2d60637abc5784cc04564973954635dd519171c5d322b530430e6f22e7a609a9" }, "downloads": -1, "filename": "simple_benchmark-0.0.6.tar.gz", "has_sig": false, "md5_digest": "35ac5005ba9ccbccd87018ab0e31ea0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6342, "upload_time": "2018-04-30T06:28:55", "url": "https://files.pythonhosted.org/packages/86/39/b310a3d168798ec051b1b1f4a56fd5e4cc3004165959a09ab881a4e113d0/simple_benchmark-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "dc75b3b67e660b020371b049d077ba94", "sha256": "6bc38f1cf44af106742e21bd53cf7fa729c0ccb81fbf493de413a039dad00a5b" }, "downloads": -1, "filename": "simple_benchmark-0.0.7.tar.gz", "has_sig": false, "md5_digest": "dc75b3b67e660b020371b049d077ba94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6903, "upload_time": "2018-04-30T07:46:48", "url": "https://files.pythonhosted.org/packages/2d/98/2088f4095032d8e9c693e21cd8bb0fc7b275acf9eb7845d74f6b598bc584/simple_benchmark-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "96b31cf4e0df5707e4988d875d551d75", "sha256": "a3c5cd3b1680c9dabbb7eb164bb5400e82796cb703c9d3ee9cb50b03be4b848f" }, "downloads": -1, "filename": "simple_benchmark-0.0.8.tar.gz", "has_sig": false, "md5_digest": "96b31cf4e0df5707e4988d875d551d75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7502, "upload_time": "2019-04-06T17:32:28", "url": "https://files.pythonhosted.org/packages/d3/f5/cf831641352725e14bea841aa88263b36b4053ddfc6f6da731eab125a19e/simple_benchmark-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "cd09a208f277bd2e711c84831afad210", "sha256": "7fbf38f5a833578e9c91011402d0827fdac81d6812dd1dcc522e960c1bc25dfc" }, "downloads": -1, "filename": "simple_benchmark-0.0.9.tar.gz", "has_sig": false, "md5_digest": "cd09a208f277bd2e711c84831afad210", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8020, "upload_time": "2019-04-07T17:07:13", "url": "https://files.pythonhosted.org/packages/97/a6/de5e20e73dda8e310f5e2c5f43aee480097aca8bab3db928105344d37774/simple_benchmark-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd09a208f277bd2e711c84831afad210", "sha256": "7fbf38f5a833578e9c91011402d0827fdac81d6812dd1dcc522e960c1bc25dfc" }, "downloads": -1, "filename": "simple_benchmark-0.0.9.tar.gz", "has_sig": false, "md5_digest": "cd09a208f277bd2e711c84831afad210", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8020, "upload_time": "2019-04-07T17:07:13", "url": "https://files.pythonhosted.org/packages/97/a6/de5e20e73dda8e310f5e2c5f43aee480097aca8bab3db928105344d37774/simple_benchmark-0.0.9.tar.gz" } ] }