Closed robraddi closed 4 years ago
parallel_lambda_test_for_biceps.py
multiprocessing
library to run jobs on separate processorsNumber of Lambdas: 3; Number of Steps: 100000000
Regular Python For Loop
time: 17sec
Starting a loop of processes (one for each lambda)
time: 6 sec
Next step is to implement into runme.py
.
This should be a nice addition for BICePs 2.0, and could possibly be applied to BICePs 3.0 for parallel replicas.
Checkout this python module Multiprocessing. Here is an example.