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
Close
Hashes for sloth-speedtest-0.2.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59a6ed3d5075c8609339ef84522e9117b123babd7e11da3c2bacb0f8860e143 |
|
MD5 | fdd8c32c5c7d4c7696c0bada4ee680e2 |
|
BLAKE2b-256 | 5712e96dc4cf472f26c71cb806d79affac176871c34ed74e16eecf397a7d2d63 |
Close
Hashes for sloth_speedtest-0.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e479d996bbb97fd2c963b1332b364ddc0f45d07cb6cbd131a352ae548ac15b4 |
|
MD5 | 64248b718d057654bfc9ff4688bb4213 |
|
BLAKE2b-256 | f8ad8b2cd19cb4013e97dfeadd1b8af657b64c9527b339a46cdabca209773c87 |