# How to speed up processing with parallelism

**URL:** <https://community.wolfram.com/t/how-to-speed-up-processing-with-parallelism/4489>\
**Category:** Questions\
**Tags:** mathematica, high-performance-computing\
**Created:** [January 8, 2015, 12:00pm UTC](https://community.wolfram.com/t/how-to-speed-up-processing-with-parallelism/4489 "2015-01-08T12:00:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceroglu](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@ceroglu](https://community.wolfram.com/u/ceroglu)\
**Post date:** [January 8, 2015, 12:00pm UTC](https://community.wolfram.com/t/how-to-speed-up-processing-with-parallelism/4489/1 "2015-01-08T12:00:52Z")

</div>

I need to evaluate a function, say myfunc, a large number of times:

myfunc/@{a,b,c, …}

Each evaluation/iteration is independent of others. How can I take advantage of parallel processing and multi-core processor capabilities in Mathematica? I am completely unfamiliar with kernels or parallel processing in Mathematica. Any suggestions will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![ccarter](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/ccarter/32/36312_2.png) [@ccarter](https://community.wolfram.com/u/ccarter)\
**Post date:** [January 8, 2015, 12:39pm UTC](https://community.wolfram.com/t/how-to-speed-up-processing-with-parallelism/4489/2 "2015-01-08T12:39:08Z")

</div>

Hello  
This example maps directly onto ParallelTable:

```
ParallelTable[myfunc@x,{x,{a,b,c,...}}]

```

The parallel kernels will launch automatically.

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [January 8, 2015, 2:10pm UTC](https://community.wolfram.com/t/how-to-speed-up-processing-with-parallelism/4489/3 "2015-01-08T14:10:15Z")

</div>

Compiling the function to the Wolfram Virtual Machine will also greatly speed up the calculation.

---

<div class="post-metadata">

**Author:** ![ceroglu](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@ceroglu](https://community.wolfram.com/u/ceroglu)\
**Post date:** [January 8, 2015, 5:02pm UTC](https://community.wolfram.com/t/how-to-speed-up-processing-with-parallelism/4489/4 "2015-01-08T17:02:31Z")

</div>

Both suggestions sped up processing time significantly. Thank you very much!
