{ "info": { "author": "Jim Crist", "author_email": "jiminy.crist@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "ptime\n=====\n\nA tool for measuring serial and parallel execution, and comparing the results.\nProvides an `IPython magic\n`_ ``%ptime``.\nThis can be useful for measuring the benefits of parallelizing code, including\nmeasuring the effect of the `Global Interpreter Lock\n`_ (GIL).\n\nExample\n-------\n\n.. code::\n\n In [1]: %load_ext ptime\n\n In [2]: import numpy as np\n\n In [3]: x = np.ones((5000, 10000))\n\n In [4]: %ptime x + x\n Total serial time: 0.42 s\n Total parallel time: 0.25 s\n For a 1.67X speedup across 2 threads\n\n In [5]: %ptime -n4 x + x # use 4 threads\n Total serial time: 0.82 s\n Total parallel time: 0.31 s\n For a 2.60X speedup across 4 threads\n\n In [6]: res = %ptime -o x + x # Get the result\n Total serial time: 0.41 s\n Total parallel time: 0.25 s\n For a 1.66X speedup across 2 threads\n\n In [7]: res.speedup\n Out[7]: 1.6610825669011922\n\n In [8]: %%ptime # Use as a cell magic\n ...: x = np.ones((5000, 10000))\n ...: y = x + x\n ...:\n Total serial time: 0.72 s\n Total parallel time: 0.47 s\n For a 1.54X speedup across 2 threads\n\nInstall\n-------\n\nThis package is available via pip:\n\n.. code::\n\n pip install ptime\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jcrist/ptime/", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "ptime", "package_url": "https://pypi.org/project/ptime/", "platform": "", "project_url": "https://pypi.org/project/ptime/", "project_urls": { "Homepage": "http://github.com/jcrist/ptime/" }, "release_url": "https://pypi.org/project/ptime/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "IPython magic for parallel profiling", "version": "0.0.1" }, "last_serial": 3029494, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "dd087d9742adb706ad0f744b7c9898bf", "sha256": "753fe7862bf081bb61391c59aa41e159a8e77bc5a7b091bf7e137c4f90739e6d" }, "downloads": -1, "filename": "ptime-0.0.1.tar.gz", "has_sig": false, "md5_digest": "dd087d9742adb706ad0f744b7c9898bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2820, "upload_time": "2017-07-17T19:21:17", "url": "https://files.pythonhosted.org/packages/0b/a9/f7bce9926eac778faa994cff43eb91816f83a3db40104922dbccb38503da/ptime-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd087d9742adb706ad0f744b7c9898bf", "sha256": "753fe7862bf081bb61391c59aa41e159a8e77bc5a7b091bf7e137c4f90739e6d" }, "downloads": -1, "filename": "ptime-0.0.1.tar.gz", "has_sig": false, "md5_digest": "dd087d9742adb706ad0f744b7c9898bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2820, "upload_time": "2017-07-17T19:21:17", "url": "https://files.pythonhosted.org/packages/0b/a9/f7bce9926eac778faa994cff43eb91816f83a3db40104922dbccb38503da/ptime-0.0.1.tar.gz" } ] }