First launch kernels
LaunchKernels[4]
{KernelObject[5, "local"], KernelObject[6, "local"], KernelObject[7, "local"], KernelObject[8, "local"]}
Then I calculate This cell
f1 = Table[ParallelSubmit[{j}, Sum[N@Gamma[i + j], {i, 10000}]], {j, 4}];
out1=AbsoluteTiming[WaitAll[f1]];out1[[1]]
The output is
4.025230
But when I just set a=0
a = 0;
f2 = Table[ParallelSubmit[{j}, Sum[N@Gamma[a + i + j], {i, 10000}]], {j, 4}];
out2 = AbsoluteTiming[WaitAll[f2]]; out2[[1]]
The output
0.729042
Is much speeder then before.
The result is same
out1[[2]] == out2[[2]]
True
Why? I'm very confused.