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.0.tar.gz (4.2 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.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: speed-benchmark-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 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.0.tar.gz
Algorithm Hash digest
SHA256 add429913a8cf42d9f8902b2c7d29385391298d2137e9dba24f06abe8056b7b3
MD5 614d105cf605c152cc75ae904ab8237a
BLAKE2b-256 30e865f6e99609a1fe11b4722450f0a79ddfed177c3034d608b9161958710a08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speed_benchmark-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00865961778e927635c072d5e6997ee1a8ebb405a3a85a8bd07af297214d34a6
MD5 76e35f1d6c862245607c849292eb7bb6
BLAKE2b-256 48a70c53139aa8093d65374860d3f7231d34ef59affebb6e4cba7486d6c7ea9e

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