The best python speedtesting library and command line tool
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sloth-speedtest-0.2.post1.tar.gz
.
File metadata
- Download URL: sloth-speedtest-0.2.post1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59a6ed3d5075c8609339ef84522e9117b123babd7e11da3c2bacb0f8860e143 |
|
MD5 | fdd8c32c5c7d4c7696c0bada4ee680e2 |
|
BLAKE2b-256 | 5712e96dc4cf472f26c71cb806d79affac176871c34ed74e16eecf397a7d2d63 |
File details
Details for the file sloth_speedtest-0.2.post1-py3-none-any.whl
.
File metadata
- Download URL: sloth_speedtest-0.2.post1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e479d996bbb97fd2c963b1332b364ddc0f45d07cb6cbd131a352ae548ac15b4 |
|
MD5 | 64248b718d057654bfc9ff4688bb4213 |
|
BLAKE2b-256 | f8ad8b2cd19cb4013e97dfeadd1b8af657b64c9527b339a46cdabca209773c87 |