The ParallelMapParallelMap
claims doing map faster than the normal MapMap
, and I checked the demo does as the document describing.
but, I try my testing, it seems not exactly while ParallelMapParallelMap
excuting with 8 kernels.
Map[(N@Sin[#]) &, Range[10000000]] // AbsoluteTiming
ParallelMap[(N@Sin[#])&,Range[10000000]]//AbsoluteTiming
the output could be like this. :
Is there bug with my testing code? Thanks!