Skip to content

Use multiprocessor compilation#8925

Draft
NachoEchevarria wants to merge 2 commits into
masterfrom
nacho/DecreaseGitlabBuildTime
Draft

Use multiprocessor compilation#8925
NachoEchevarria wants to merge 2 commits into
masterfrom
nacho/DecreaseGitlabBuildTime

Conversation

@NachoEchevarria

Copy link
Copy Markdown
Collaborator

Summary of changes

Reason for change

Implementation details

Test coverage

Other details

@github-actions github-actions Bot added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Jul 22, 2026
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8925) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration71.24 ± (71.27 - 71.63) ms75.09 ± (74.71 - 75.30) ms+5.4%✅⬆️
.NET Framework 4.8 - Bailout
duration75.39 ± (75.08 - 75.45) ms78.52 ± (78.56 - 79.13) ms+4.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1095.75 ± (1094.49 - 1101.76) ms1090.27 ± (1088.98 - 1096.35) ms-0.5%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.08 ± (22.05 - 22.12) ms22.49 ± (22.43 - 22.54) ms+1.8%✅⬆️
process.time_to_main_ms81.85 ± (81.69 - 82.02) ms86.22 ± (85.93 - 86.50) ms+5.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.02 ± (11.01 - 11.02) MB11.02 ± (11.02 - 11.02) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.06 ± (22.03 - 22.09) ms21.96 ± (21.93 - 21.99) ms-0.5%
process.time_to_main_ms82.72 ± (82.58 - 82.85) ms83.41 ± (83.21 - 83.60) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.03 ± (11.03 - 11.04) MB11.05 ± (11.05 - 11.06) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.60 ± (209.62 - 211.59) ms211.17 ± (210.36 - 211.98) ms+0.3%✅⬆️
process.time_to_main_ms539.44 ± (538.27 - 540.61) ms540.36 ± (538.84 - 541.88) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.49 ± (49.46 - 49.51) MB49.47 ± (49.44 - 49.50) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms21.36 ± (21.30 - 21.43) ms20.84 ± (20.81 - 20.88) ms-2.4%
process.time_to_main_ms74.96 ± (74.66 - 75.26) ms71.37 ± (71.20 - 71.54) ms-4.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.70 ± (10.70 - 10.70) MB10.73 ± (10.73 - 10.73) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.87 ± (20.85 - 20.90) ms21.10 ± (21.04 - 21.15) ms+1.1%✅⬆️
process.time_to_main_ms72.73 ± (72.57 - 72.89) ms74.51 ± (74.18 - 74.84) ms+2.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.83 ± (10.82 - 10.83) MB10.85 ± (10.84 - 10.85) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms373.24 ± (371.12 - 375.37) ms372.57 ± (370.46 - 374.67) ms-0.2%
process.time_to_main_ms546.63 ± (545.20 - 548.07) ms545.98 ± (544.58 - 547.37) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.56 ± (50.54 - 50.58) MB50.53 ± (50.51 - 50.55) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.41 ± (19.36 - 19.46) ms19.27 ± (19.23 - 19.31) ms-0.8%
process.time_to_main_ms72.20 ± (71.89 - 72.51) ms71.69 ± (71.44 - 71.93) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.76 - 7.77) MB7.78 ± (7.77 - 7.78) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.50 ± (19.44 - 19.55) ms19.07 ± (19.04 - 19.11) ms-2.2%
process.time_to_main_ms74.80 ± (74.50 - 75.10) ms71.43 ± (71.31 - 71.55) ms-4.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.81 ± (7.81 - 7.82) MB7.83 ± (7.82 - 7.84) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms298.32 ± (296.24 - 300.40) ms298.37 ± (295.72 - 301.01) ms+0.0%✅⬆️
process.time_to_main_ms494.79 ± (493.62 - 495.96) ms497.98 ± (496.49 - 499.46) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed38.00 ± (37.98 - 38.02) MB37.95 ± (37.92 - 37.97) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.0%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration232.20 ± (231.40 - 234.65) ms246.62 ± (243.87 - 246.89) ms+6.2%✅⬆️
.NET Framework 4.8 - Bailout
duration242.07 ± (241.73 - 244.05) ms248.48 ± (245.40 - 248.97) ms+2.7%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1303.77 ± (1300.91 - 1307.91) ms1326.59 ± (1322.50 - 1332.20) ms+1.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms223.61 ± (222.10 - 225.13) ms233.36 ± (231.64 - 235.07) ms+4.4%✅⬆️
process.time_to_main_ms94.74 ± (94.30 - 95.18) ms96.67 ± (96.20 - 97.14) ms+2.0%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.87 ± (15.86 - 15.89) MB15.99 ± (15.97 - 16.00) MB+0.7%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.2%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms229.84 ± (228.31 - 231.38) ms238.25 ± (236.81 - 239.70) ms+3.7%✅⬆️
process.time_to_main_ms97.69 ± (97.23 - 98.16) ms99.67 ± (99.21 - 100.14) ms+2.0%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.92 ± (15.90 - 15.93) MB15.99 ± (15.98 - 16.01) MB+0.5%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.4%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms418.52 ± (416.81 - 420.24) ms417.59 ± (416.04 - 419.14) ms-0.2%
process.time_to_main_ms586.02 ± (584.74 - 587.29) ms586.80 ± (585.54 - 588.06) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.89 ± (59.85 - 59.93) MB59.97 ± (59.92 - 60.01) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms233.75 ± (231.93 - 235.56) ms233.96 ± (231.32 - 236.61) ms+0.1%✅⬆️
process.time_to_main_ms82.32 ± (81.88 - 82.76) ms83.88 ± (83.42 - 84.34) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.4%✅⬆️
runtime.dotnet.mem.committed16.29 ± (16.27 - 16.31) MB16.22 ± (16.20 - 16.24) MB-0.4%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 20)-0.2%
.NET 6 - Bailout
process.internal_duration_ms227.17 ± (225.66 - 228.68) ms242.91 ± (241.04 - 244.78) ms+6.9%✅⬆️
process.time_to_main_ms83.70 ± (83.34 - 84.05) ms85.02 ± (84.64 - 85.40) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.4%✅⬆️
runtime.dotnet.mem.committed16.32 ± (16.31 - 16.34) MB16.26 ± (16.25 - 16.28) MB-0.4%
runtime.dotnet.threads.count21 ± (21 - 21)20 ± (20 - 21)-0.4%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms664.62 ± (655.52 - 673.71) ms645.76 ± (637.06 - 654.46) ms-2.8%
process.time_to_main_ms604.56 ± (602.96 - 606.16) ms603.20 ± (601.60 - 604.80) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed62.54 ± (62.44 - 62.63) MB62.51 ± (62.42 - 62.61) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.1%
.NET 8 - Baseline
process.internal_duration_ms252.58 ± (250.87 - 254.30) ms237.61 ± (235.49 - 239.73) ms-5.9%
process.time_to_main_ms84.14 ± (83.75 - 84.52) ms82.43 ± (82.11 - 82.76) ms-2.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)-0.4%
runtime.dotnet.mem.committed11.42 ± (11.40 - 11.43) MB11.49 ± (11.47 - 11.51) MB+0.6%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms250.19 ± (248.32 - 252.06) ms230.55 ± (228.97 - 232.13) ms-7.9%
process.time_to_main_ms85.04 ± (84.67 - 85.41) ms83.97 ± (83.66 - 84.27) ms-1.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.3%✅⬆️
runtime.dotnet.mem.committed11.48 ± (11.46 - 11.50) MB11.58 ± (11.56 - 11.59) MB+0.8%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms619.41 ± (615.64 - 623.18) ms618.34 ± (614.38 - 622.29) ms-0.2%
process.time_to_main_ms557.52 ± (556.04 - 559.00) ms557.83 ± (556.24 - 559.42) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed52.33 ± (52.29 - 52.37) MB52.37 ± (52.32 - 52.42) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (75ms)  : 70, 80
    master - mean (71ms)  : 69, 74

    section Bailout
    This PR (8925) - mean (79ms)  : 75, 83
    master - mean (75ms)  : 73, 77

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (1,093ms)  : 1040, 1146
    master - mean (1,098ms)  : 1047, 1150

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (116ms)  : 111, 121
    master - mean (111ms)  : 107, 114

    section Bailout
    This PR (8925) - mean (112ms)  : 110, 115
    master - mean (111ms)  : 109, 113

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (791ms)  : 768, 815
    master - mean (789ms)  : 766, 813

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (98ms)  : 95, 101
    master - mean (103ms)  : 97, 109

    section Bailout
    This PR (8925) - mean (102ms)  : 95, 110
    master - mean (100ms)  : 96, 103

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (949ms)  : 910, 987
    master - mean (953ms)  : 903, 1002

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (98ms)  : 93, 103
    master - mean (99ms)  : 93, 105

    section Bailout
    This PR (8925) - mean (97ms)  : 95, 99
    master - mean (102ms)  : 96, 109

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (831ms)  : 777, 885
    master - mean (826ms)  : 782, 870

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (245ms)  : 223, 268
    master - mean (233ms)  : 208, 258

    section Bailout
    This PR (8925) - mean (247ms)  : 220, 274
    master - mean (243ms)  : 226, 259

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (1,327ms)  : 1255, 1400
    master - mean (1,304ms)  : 1254, 1355

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (342ms)  : 308, 375
    master - mean (329ms)  : 303, 354

    section Bailout
    This PR (8925) - mean (351ms)  : 321, 380
    master - mean (339ms)  : 312, 365

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (1,047ms)  : 1014, 1081
    master - mean (1,047ms)  : 1008, 1087

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (329ms)  : 285, 373
    master - mean (326ms)  : 303, 349

    section Bailout
    This PR (8925) - mean (338ms)  : 308, 368
    master - mean (320ms)  : 296, 345

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (1,290ms)  : 1155, 1425
    master - mean (1,317ms)  : 1189, 1445

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8925) - mean (332ms)  : 299, 365
    master - mean (350ms)  : 323, 378

    section Bailout
    This PR (8925) - mean (327ms)  : 298, 356
    master - mean (349ms)  : 312, 385

    section CallTarget+Inlining+NGEN
    This PR (8925) - mean (1,214ms)  : 1146, 1283
    master - mean (1,216ms)  : 1155, 1277

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant