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.2.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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: speed-benchmark-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9b829671a4b3162d6310e743c953eb5737b3ffddce5f978bcfeb4c2162a9acc2
MD5 5e984b5e41700de219d0c850a675533b
BLAKE2b-256 a7dec6179a3f5b8e03842a5571b1f83ed8bfd85b33a1790f763ddc89482f6cbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speed_benchmark-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d988e329bcbb84fd12cdb4c2413cdfa3f89965380386eb85d67eb9c3e991be2
MD5 8466f62140df229461db3f4e50c3edc5
BLAKE2b-256 9df7c2e21207c4f298da751194f9c482a0d30d657703c63b5308d43af2f09491

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