{ "info": { "author": "Mukundan Senthil", "author_email": "mukundan314@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "# python-fastrand\n\nA pure python clone of [lemire/fastrand](https://github.com/lemire/fastrand)\n\n## Installation\n\nWith `pip`:\n\n```shell\npip install python-fastrand\n```\n\nFrom source:\n\n```\ngit clone https://github.com/mukundan314/python-fastrand.git\ncd python-fastrand\npython setup.py install\n```\n\n## Usage\n\nAll methods are compatible with the ones in [lemire/fastrand](https://github.com/lemire/fastrand) provided in the `pyfastrand` module\n\n```\n>>> import pyfastrand\n>>> pyfastrand.pcg32bounded(1000)\n498\n>>> pyfastrand.pcg32()\n1547545700\n```\n\n## Benchmarks\n\n```shell\n$ bash benchmark.sh\n_random.Random().random\n2000000 loops, best of 5: 156 nsec per loop\n\nfastrand.pcg32\n2000000 loops, best of 5: 137 nsec per loop\n\nfastrand.pcg32bounded\n5000000 loops, best of 5: 78.2 nsec per loop\n\nos.urandom\n500000 loops, best of 5: 865 nsec per loop\n\npyfastrand.pcg32\n500000 loops, best of 5: 634 nsec per loop\n\npyfastrand.pcg32bounded\n500000 loops, best of 5: 749 nsec per loop\n\nrandom.randint\n500000 loops, best of 5: 822 nsec per loop\n\nrandom.random\n2000000 loops, best of 5: 169 nsec per loop\n```\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/mukundan314/python-fastrand.git", "keywords": "random pcg", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-fastrand", "package_url": "https://pypi.org/project/python-fastrand/", "platform": "", "project_url": "https://pypi.org/project/python-fastrand/", "project_urls": { "Homepage": "https://github.com/mukundan314/python-fastrand.git" }, "release_url": "https://pypi.org/project/python-fastrand/1.1/", "requires_dist": null, "requires_python": "", "summary": "Pure Python clone of fastrand", "version": "1.1" }, "last_serial": 5001620, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "f3799cf4c3ecd81fc39b9da1f0ea70ff", "sha256": "3e8fe2eb8dc386a6cd881068ef89e3de711559492e2c2a960aa8f2128d3a1f06" }, "downloads": -1, "filename": "python_fastrand-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3799cf4c3ecd81fc39b9da1f0ea70ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3701, "upload_time": "2019-03-29T05:11:11", "url": "https://files.pythonhosted.org/packages/1f/08/f8fe0ff100da459430ad9f50831e71fdcae5e8fc46f550bccc563cdadd29/python_fastrand-1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f3799cf4c3ecd81fc39b9da1f0ea70ff", "sha256": "3e8fe2eb8dc386a6cd881068ef89e3de711559492e2c2a960aa8f2128d3a1f06" }, "downloads": -1, "filename": "python_fastrand-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3799cf4c3ecd81fc39b9da1f0ea70ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3701, "upload_time": "2019-03-29T05:11:11", "url": "https://files.pythonhosted.org/packages/1f/08/f8fe0ff100da459430ad9f50831e71fdcae5e8fc46f550bccc563cdadd29/python_fastrand-1.1-py2.py3-none-any.whl" } ] }