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

python_benchmark_thread_vs_process-0.1.3.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

python_benchmark_thread_vs_process-0.1.3-py2.py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 2 Python 3

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