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

Uploaded Python 3

File details

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

File metadata

  • Download URL: speed-benchmark-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0cb1fe544ae9ca1affde1194e45de7cc0468f3c16969f3d1eb6a5627ec01415f
MD5 03df8f6f2f37b3d7f5a2b7a4ed2a1daf
BLAKE2b-256 31211ce71f23360fae629008d850581cdc469949fa20282239e8813e4b98e074

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speed_benchmark-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 489c70d957746f4c70cdc2f2ffe55fd36522b86dbba4696ac194284bcc5036c7
MD5 0acf9a3cc6a832e3f9b3fd5b7312bbd6
BLAKE2b-256 8d24baa89e768b601571f0ff8e9203b1c1cd622590121ed75e41073b7f32c308

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