sloth
The python speedtesting library and command line tool
sloth is a Python package for speedtesting python code and functions with as little code as necessary.
It's easy to use and, unlike many projects, has decent documentation.
The idea behind this API is:
>>> from sloth import compare_sloth
>>> import timeit
>>> compare_sloth(timeit)
'sloth is loads better than timeit!'
See? described in 3 lines. Everything that timeit can do, sloth can do better - or will soon. And alot of things
timeit can't do sloth can do anyway.
A Quick Example
>>> from sloth.simple import time_callable
>>> import time
>>> def my_func(a, b, c):
... time.sleep(1)
... print(a, b, c)
>>> time_callable(my_func, 2, 'a', 'b', 'c')
a b c
1.000063419342041
Installation
You can install sloth with pip:
pip install sloth-speedtest
Please see the docs for more info.
Links
Note that this library is unrelated and mutually exclusive to the one at https://sloth.readthedocs.io
Metadata
Release files for sloth-speedtest 0.2.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sloth-speedtest-0.2.post1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sloth_speedtest-0.2.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / sloth-speedtest-0.2.post1.tar.gz
| Download URL | sloth-speedtest-0.2.post1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e59a6ed3d5075c8609339ef84522e9117b123babd7e11da3c2bacb0f8860e143
|
|
BLAKE2b-256 checksum How to use checksums |
5712e96dc4cf472f26c71cb806d79affac176871c34ed74e16eecf397a7d2d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6
|
Release files / sloth_speedtest-0.2.post1-py3-none-any.whl
| Download URL | sloth_speedtest-0.2.post1-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e479d996bbb97fd2c963b1332b364ddc0f45d07cb6cbd131a352ae548ac15b4
|
|
BLAKE2b-256 checksum How to use checksums |
f8ad8b2cd19cb4013e97dfeadd1b8af657b64c9527b339a46cdabca209773c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6
|