sclass Bench_StupidFib_collab { settable int n = 40; settable int maxCores = coresToUse(); settable int iterations = 3; settable int pt = 28; run { repeat iterations { print(); print(returnTimed("Serial", -> stupidFib(n)); for (cores : countIterator_incl(1, maxCores)) print(returnTimed(nCores(cores), -> StupidFib_collab(FastCollab(cores), n) .parallelizationThreshold(pt)!)); } } }