{ "info": { "author": "Yuri Shikanov", "author_email": "dizballanze@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "breaking-point.py\n=================\n\nbreaking-point.py helps to find a size of input data where one function starts outperform\nanother function. It is a convenient way to compare different algorithms for a single\ntask.\n\nINSTALLATION\n------------\n\n::\n \n pip install breaking-point\n\nUSAGE\n-----\n\n.. code:: python\n\n from breaking_point import find_breaking_point\n\n find_breaking_point(f1, f2, input_generator, start=1, step=1, limit=1000000, trial_count=1000, repeat_count=3)\n\nthere \n\n- ``f1``, ``f2`` - functions to compare.\n- ``inpurt_generator`` - function that takes ``n`` argument (size of input on current iteration) and returns input data for ``f1`` and ``f2``. Return value should be a tuple with first element - list of non-keyworded arguments and second element - dict of keyword arguments.\n- ``start`` - initial input data size.\n- ``step`` - step of iteration.\n- ``limit`` - maximum amount of input data. If breaking point was not found until limit was reached - iteration stops.\n- ``trial_count`` - number of executions with each input data size.\n- ``repeat_count`` - repeat trial several times and use average performance result.\n\nFunction returns ``n0`` - size of input data for which ``f2(n0)`` executed faster than ``f1(n0)`` or ``None`` if reaches limit.\n\nEXAMPLE\n-------\n\nSee ``example.py``.\n\nLICENSE\n-------\n\nMIT", "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/dizballanze/breaking-point", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "breaking-point", "package_url": "https://pypi.org/project/breaking-point/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/breaking-point/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dizballanze/breaking-point" }, "release_url": "https://pypi.org/project/breaking-point/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "breaking-point.py helps to find a size of input data where one function starts outperform another function. It is a convenient way to compare different algorithms for a single task.", "version": "0.1.0" }, "last_serial": 1906276, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "25bd6f6cb975844a9aa86d59819f6c31", "sha256": "ec1430a9ec037b1460d308e9a838d6355d0ca111040c77631f862f70342bc50b" }, "downloads": -1, "filename": "breaking_point-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "25bd6f6cb975844a9aa86d59819f6c31", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5906, "upload_time": "2016-01-15T15:42:38", "url": "https://files.pythonhosted.org/packages/61/e1/d132773a82e98a9bd40a63091983f6cf4691e2ae27ecdce424a6268aa199/breaking_point-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ee9c6d73c809322af58ade93f6f18a9c", "sha256": "5508d275dff47d116a1430262ccb520f125438f28eb325aaa94af75f08be0bc7" }, "downloads": -1, "filename": "breaking-point-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ee9c6d73c809322af58ade93f6f18a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2968, "upload_time": "2016-01-15T15:42:43", "url": "https://files.pythonhosted.org/packages/9c/99/639f3a21d40063111335202e81c1d50d33b5c1e0c87e148c5edc12a2ab3b/breaking-point-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25bd6f6cb975844a9aa86d59819f6c31", "sha256": "ec1430a9ec037b1460d308e9a838d6355d0ca111040c77631f862f70342bc50b" }, "downloads": -1, "filename": "breaking_point-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "25bd6f6cb975844a9aa86d59819f6c31", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5906, "upload_time": "2016-01-15T15:42:38", "url": "https://files.pythonhosted.org/packages/61/e1/d132773a82e98a9bd40a63091983f6cf4691e2ae27ecdce424a6268aa199/breaking_point-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ee9c6d73c809322af58ade93f6f18a9c", "sha256": "5508d275dff47d116a1430262ccb520f125438f28eb325aaa94af75f08be0bc7" }, "downloads": -1, "filename": "breaking-point-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ee9c6d73c809322af58ade93f6f18a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2968, "upload_time": "2016-01-15T15:42:43", "url": "https://files.pythonhosted.org/packages/9c/99/639f3a21d40063111335202e81c1d50d33b5c1e0c87e148c5edc12a2ab3b/breaking-point-0.1.0.tar.gz" } ] }