Multithreading performance overhead

前端 未结 2 645
误落风尘
误落风尘 2020-12-19 21:38

So basically I created this program that adds values to redis. So far I get this timing:

real 0m27.759s
user 0m18.12         


        
2条回答
  •  一向
    一向 (楼主)
    2020-12-19 22:36

    You can use Parallel Python for this.

    Here is an example of parallel sum:

    http://www.parallelpython.com/content/view/17/31/#SUM_PRIMES

提交回复
热议问题