Skip to content

MerlinEmris/multiprocessing_in_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Multiprocessing In Python

Calculating Fibonachi sequence siries and parallel; time comparizon!

Roadmap

  1. Roadmap
  2. Installation
  3. Usage/Examples
  4. Running Tests
  5. Acknowledgements

Installation

requires python >=3.6

git clone https://github.com/MerlinEmris/multiprocessing_in_python.git
python multiproces\multiprocess.py

Usage/Examples

App gets 2 variables from num to num2 Application calculates Fibonachi secuence siries as normal python app and in parallel where task is seperated between cpu cores.

python multiproces\multiprocess.py 12 22

python multiproces\multiprocess.py 1 40
cpu core count:16
values are 1 - 40
parallel: [[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025,
121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155]]
parallel time:15.866930961608887
series: [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155]
series time:36.89705181121826
delta time (series/parallel):2.325405707032644

Running Tests

To run tests, run the following command

  python multiproces\test.py

Acknowledgements

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy