Skip to main content

The best python speedtesting library and command line tool

Project description


The python speedtesting library and command line tool

codecov Build Status Codacy Badge License: MIT Contributors Last Commit Documentation Status

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


You can install sloth with pip:

pip install sloth-speedtest

Please see the docs for more info.


Note that this library is unrelated and mutually exclusive to the one at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sloth-speedtest, version 0.2.post1
Filename, size File type Python version Upload date Hashes
Filename, size sloth_speedtest-0.2.post1-py3-none-any.whl (11.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sloth-speedtest-0.2.post1.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page