Skip to main content

Python Benchmark: multi-thread vs multi-process

Project description

python-benchmark-thread-vs-process

A benchmark on speed evaluation between multi-thread and multi-process in Python

Installation

$ pip install python_benchmark_thread_vs_process

Usage

Run benchmarking with the following command:

$ python_benchmark_thread_vs_process

Benchmarking Results

Num CPUs CPU Freq (MHz) Multi-Thread Time (s) Multi-Process Time (s) Num Test Operation
1 2500 1.2260 1.2269 10

Contributing

Benchmarking

To contribute to our benchmark table, please follow these steps:

  • Step 1: Install package: pip install python-benchmark-thread-vs-process
  • Step 2: Run benchmarking on your machine / server with the command: python_benchmark_thread_vs_process
  • Step 3: If your system information has not been included in the benchmarking results, please create a new issue ticket (with enhancement label) and submit your benchmarking result. Your submission is welcome!
  • Step 4: We'll review and update the benchmarking results.

Code development

  • Step 1. Fork on master branch.
  • Step 2. Install pre-commit on the local dev environment.
pip install pre-commit
pre-commit install

  • Step 3. Write unit-test (if any).
  • Step 4. Write code to pass the tests.
  • Step 5. Make sure that the new code passes all the pre-commmit conditions.
sh pre_commit.sh

  • Step 6. Create pull request.

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

Built Distribution

python_benchmark_thread_vs_process-0.1.1-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python_benchmark_thread_vs_process-0.1.1.tar.gz.

File metadata

  • Download URL: python_benchmark_thread_vs_process-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for python_benchmark_thread_vs_process-0.1.1.tar.gz
Algorithm Hash digest
SHA256 11b2801dce95330214f9422572a2caf7359f941b4a2fabcf9d7d497893bb2e90
MD5 9f589dfe8b2feec2b7d997c74cbfdf2c
BLAKE2b-256 d5e7e6399db4ab26b47be808c50c3208eb84056b01791228601cfca74d103c26

See more details on using hashes here.

File details

Details for the file python_benchmark_thread_vs_process-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_benchmark_thread_vs_process-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d5cb111b1b21274b7fbe3db753753467078b4aa683d29a88c2eec497c7bc148
MD5 978d43a06123d746199951c8dc29ecf2
BLAKE2b-256 b276533b879565f6c8b55083980ade3ff8803d5ebb48fe7950bd29873a2e28d7

See more details on using hashes here.

Supported by

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