Skip to main content

A generic speed benchmark library.

Project description

Introduction

A generic speed benchmark library. It runs every func with every arg to get the average time cost and also checks the result.

The funcs parameter is a dict of function name and functions to evaluate. The args parameter is a dict with key main_arg_name and data. The main_arg_name is used to determine the variable name of each group argument of the function, and the data is a dict of <main_arg_value>:<args_of_func>. The data can also be a list of arguments. If so, the main_arg_name must be in each group of arguments and the value of it will be used as the main_arg_value.

Also, you can set the pre_func, post_func, and check_result_func to change the behavior of the benchmark.

Project details


Download files

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

Source Distribution

speed-benchmark-1.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

speed_benchmark-1.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file speed-benchmark-1.0.3.tar.gz.

File metadata

  • Download URL: speed-benchmark-1.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for speed-benchmark-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e7aa27b95fd204d34d68f047bb28a299f3ba70a3770f42e67f0d3d93c2735a12
MD5 0ccd85e91d4c37e829c6c2afb461cf8d
BLAKE2b-256 168a114dbfdd079e9b914897d6de0d95c122fd29241447fec64f554f6f04db26

See more details on using hashes here.

File details

Details for the file speed_benchmark-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for speed_benchmark-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1d79ad1e34066734fbb176a5a904fb6c9c015bcfbc05ab4e09947231fff15cb
MD5 0bc9c68f88f92744d662e6096044ef63
BLAKE2b-256 538b3951154879765372ca5737a7412561131c87ea210cc374840ca730a2e4bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page