Joe Duffy, Huseyin Yildiz, Daan Leijen, Stephen Toub - Parallel Extensions: Inside the Task ParallelMar 21, 2008 at 2:50PM
boomeranda wrote:Did anyone try to benchmark these TPL examples?
I've tried the PFib function from the video and its parallel version is several times slower than its sequential sibling on Dual Core XP machine, December CTP TPL.
The console app created 29 threads, and used huge chunk of memory. <= it's not because of PFib
Also Parallel.For was 1.5 - 2 times slower on simple bulky array operations.
Do I need at least QCore to see advantages?
Obviously the overhead from switching threads is too high for such a simple task. After adding more demanding calculations to PFib, TPL's advantage becomes obvious.
Good job TPL team!