Here are the results from one run of swift package benchmark --grouping metric
:
Instructions
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ
β Test β p0 β p25 β p50 β p75 β p90 β p99 β p100 β Samples β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββ‘
β ParallelDAG:ActorBasedTaskCache (K) * β 1732 β 2480 β 2619 β 2775 β 2898 β 3160 β 3470 β 2791 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:GCDBasedTaskCache (K) * β 3750 β 4227 β 4448 β 4751 β 5046 β 5517 β 6469 β 1871 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:MutexBasedTaskCache (K) * β 1341 β 2009 β 2175 β 2343 β 2497 β 2804 β 3353 β 2769 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:OSAllocatedUnfairLockBasedTaskCache (K) * β 1343 β 1781 β 1928 β 2105 β 2294 β 2671 β 3098 β 3123 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Operations (K) * β 2952 β 3645 β 3932 β 4272 β 4628 β 5140 β 6039 β 1962 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:ReadWriteLock (K) * β 1624 β 2464 β 2701 β 2914 β 3103 β 3457 β 4180 β 2403 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Tasks (K) * β 1683 β 2241 β 2419 β 2580 β 2693 β 2896 β 3110 β 2881 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ
Malloc (total)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ
β Test β p0 β p25 β p50 β p75 β p90 β p99 β p100 β Samples β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββ‘
β ParallelDAG:ActorBasedTaskCache * β 254 β 637 β 726 β 831 β 960 β 1258 β 19214 β 2791 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:GCDBasedTaskCache * β 562 β 1795 β 2115 β 2587 β 3111 β 4579 β 6680 β 1871 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:MutexBasedTaskCache * β 221 β 430 β 520 β 644 β 794 β 1147 β 18757 β 2769 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:OSAllocatedUnfairLockBasedTaskCache * β 195 β 434 β 517 β 636 β 782 β 1125 β 2011 β 3123 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Operations * β 968 β 997 β 1075 β 1100 β 1178 β 1271 β 11516 β 1962 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:ReadWriteLock * β 161 β 437 β 520 β 635 β 777 β 1204 β 1516 β 2403 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Tasks * β 137 β 435 β 531 β 667 β 826 β 1181 β 1920 β 2881 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ
Memory (resident peak)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ
β Test β p0 β p25 β p50 β p75 β p90 β p99 β p100 β Samples β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββ‘
β ParallelDAG:ActorBasedTaskCache (M) β 10 β 14 β 14 β 14 β 14 β 14 β 14 β 2791 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:GCDBasedTaskCache (M) β 11 β 16 β 16 β 16 β 16 β 16 β 16 β 1871 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:MutexBasedTaskCache (M) β 10 β 16 β 16 β 17 β 17 β 17 β 17 β 2769 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:OSAllocatedUnfairLockBasedTaskCache (M) β 10 β 14 β 14 β 16 β 17 β 17 β 17 β 3123 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Operations (M) β 11 β 19 β 21 β 23 β 23 β 23 β 23 β 1962 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:ReadWriteLock (M) β 11 β 15 β 15 β 16 β 16 β 16 β 16 β 2403 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Tasks (M) β 10 β 14 β 15 β 15 β 15 β 15 β 15 β 2881 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ
Throughput (# / s)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ
β Test β p0 β p25 β p50 β p75 β p90 β p99 β p100 β Samples β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββ‘
β ParallelDAG:ActorBasedTaskCache (#) β 5414 β 4155 β 3997 β 3829 β 3597 β 2741 β 1058 β 2791 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:GCDBasedTaskCache (#) β 3475 β 2929 β 2653 β 2343 β 2119 β 1673 β 737 β 1871 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:MutexBasedTaskCache (#) β 6291 β 4995 β 4659 β 4279 β 3845 β 3023 β 361 β 2769 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:OSAllocatedUnfairLockBasedTaskCache (#) β 7535 β 5795 β 5351 β 4771 β 4319 β 3241 β 841 β 3123 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Operations (#) β 4486 β 3429 β 3071 β 2693 β 2367 β 1800 β 1192 β 1962 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:ReadWriteLock (#) β 6284 β 4017 β 3667 β 3387 β 3071 β 1832 β 600 β 2403 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Tasks (#) β 5775 β 4431 β 4175 β 3951 β 3677 β 3067 β 1074 β 2881 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ
Time (total CPU)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ
β Test β p0 β p25 β p50 β p75 β p90 β p99 β p100 β Samples β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββ‘
β ParallelDAG:ActorBasedTaskCache (ΞΌs) * β 250 β 352 β 374 β 399 β 435 β 567 β 810 β 2791 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:GCDBasedTaskCache (ΞΌs) * β 413 β 507 β 549 β 600 β 658 β 808 β 1430 β 1871 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:MutexBasedTaskCache (ΞΌs) * β 195 β 313 β 347 β 386 β 435 β 581 β 960 β 2769 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:OSAllocatedUnfairLockBasedTaskCache (ΞΌs) * β 182 β 270 β 299 β 338 β 382 β 519 β 687 β 3123 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Operations (ΞΌs) * β 329 β 503 β 568 β 671 β 782 β 1067 β 1608 β 1962 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:ReadWriteLock (ΞΌs) * β 219 β 368 β 409 β 445 β 487 β 664 β 1021 β 2403 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Tasks (ΞΌs) * β 236 β 340 β 368 β 398 β 432 β 532 β 625 β 2881 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ
Time (wall clock)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ€ββββββββββ
β Test β p0 β p25 β p50 β p75 β p90 β p99 β p100 β Samples β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββͺββββββββββ‘
β ParallelDAG:ActorBasedTaskCache (ΞΌs) * β 185 β 241 β 250 β 261 β 278 β 365 β 945 β 2791 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:GCDBasedTaskCache (ΞΌs) * β 288 β 342 β 377 β 427 β 472 β 598 β 1358 β 1871 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:MutexBasedTaskCache (ΞΌs) * β 159 β 200 β 215 β 234 β 260 β 331 β 2766 β 2769 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:OSAllocatedUnfairLockBasedTaskCache (ΞΌs) * β 133 β 173 β 187 β 210 β 232 β 309 β 1189 β 3123 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Operations (ΞΌs) * β 223 β 292 β 326 β 372 β 423 β 556 β 839 β 1962 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:ReadWriteLock (ΞΌs) * β 159 β 249 β 273 β 295 β 326 β 546 β 1666 β 2403 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββΌββββββββββ€
β ParallelDAG:Tasks (ΞΌs) * β 173 β 226 β 240 β 253 β 272 β 326 β 931 β 2881 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ§ββββββββββ