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

$ pip3 install python_benchmark_thread_vs_process

Install package and run test in one command:

$ sudo pip3 install python_benchmark_thread_vs_process && 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
16 2597 157.0499 11.4933 160

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: python_benchmark_thread_vs_process-0.1.2.tar.gz
  • Upload date:
  • Size: 10.2 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.2.tar.gz
Algorithm Hash digest
SHA256 348cb0f93a542b3c24099f16f5cb79e7d0b25d4d516805034afe8fb7fa0a4cfa
MD5 0deebba68551240af04ff2b53e72340f
BLAKE2b-256 536101760a694c6f6357efa19857df840900517d711476f5f0700aa418a03fb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_benchmark_thread_vs_process-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 508468f9603d7fab966e03ee00b08402bbfd1362efaf9892ca7ea9596362e4b3
MD5 fb643963fe7caa8065731e4ca033cc48
BLAKE2b-256 ada161361a19815e18de442d13f0170e170c97dc83d5e1a43405f842a6adfc15

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