Skip to main content

python-benchmark-thread-vs-process

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

Installation

sudo pip3 install python_benchmark_thread_vs_process

Note: this package only supports Python 3.

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

Note: It takes up to 15 minutes to finish the test. Please be patient!

Benchmarking Results

Try to keep your CPUs usage free as much as possible before benchmarking.

For latest benchmarking result, please checkout @ https://github.com/minhng-info/python-benchmark-thread-vs-process

Num CPUs CPU Model Current CPU Freq (MHz) Multi-Thread Time (s) Multi-Process Time (s) Total Test Operation Contributor
1 Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz 2500 11.7581 12.0673 100 @minhng92
4 ARM Cortex A53 1512 289.2922 64.5466 400 @johnhlaj
4 Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz 2474 55.3840 8.8589 400 @minhng92
4 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz 2683 20.9098 10.9195 400 @minhng92
16 Intel(R) Xeon(R) Silver 4208 CPU @ 2.10GHz 822 106.3637 12.3538 1600 @minhng92
16 Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz 2597 98.6584 7.1033 1600 @minhng92
24 Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz 1331 372.3926 18.5923 2400 @minhng92
32 Intel(R) Xeon(R) Silver 4108 CPU @ 1.80GHz 809 478.8115 15.0538 3200 @minhng92
72 Intel(R) Xeon(R) Gold 5220S CPU @ 2.70GHz 1016 550.4936 11.6759 7200 @minhng92
72 Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz 1003 545.8076 10.6285 7200 @minhng92

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.

Metadata

Release files for python-benchmark-thread-vs-process 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-benchmark-thread-vs-process 0.1.5
File Size Uploaded
python_benchmark_thread_vs_process-0.1.5.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-benchmark-thread-vs-process 0.1.5
File Interpreter ABI Platform
python_benchmark_thread_vs_process-0.1.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 23.2 kB

Release files / python_benchmark_thread_vs_process-0.1.5.tar.gz

Download URL python_benchmark_thread_vs_process-0.1.5.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f4cf33ca208226a0ae7c3bb23f91f5f90caab11adf6cf233ea14f5553b6584ec
BLAKE2b-256 checksum
How to use checksums
115e692998a619d519ec003de8339939f56a0bd322212937c62e469ded0d38e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / python_benchmark_thread_vs_process-0.1.5-py2.py3-none-any.whl

Download URL python_benchmark_thread_vs_process-0.1.5-py2.py3-none-any.whl
Size 11.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0c7e69d29211ded8324ef840497f150c37f3a0f18b368a821cd80880a96c06db
BLAKE2b-256 checksum
How to use checksums
b858fc5e59cab64d23d2fbd2f7a21c00a77815802d41409bca8948f18d88d92e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page