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
File details
Details for the file python_benchmark_thread_vs_process-0.1.3.tar.gz
.
File metadata
- Download URL: python_benchmark_thread_vs_process-0.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3850c50fee95752b399726a8e14bf436fbe0b187b98cadfffaaa7a34f6b53f |
|
MD5 | 09f1486e82458430cec00b6927aad013 |
|
BLAKE2b-256 | d4411527f999fc2e2bebf3e7142044bfb7f2411a144f0f89a3d604742ca3df02 |
File details
Details for the file python_benchmark_thread_vs_process-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: python_benchmark_thread_vs_process-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e85c1992e0cc9e6db92ced8394c77597c597b718cd550dde866825643dd2fbd |
|
MD5 | b318a237eb1409f4faad530b69e15458 |
|
BLAKE2b-256 | 81e216453a37a6f169ba5606f9a32031a849644dfc2b4cd8a46c565d3c0ff54b |