Skip to content

Instantly share code, notes, and snippets.

@MihuBot
Created March 16, 2026 23:15
Show Gist options
  • Select an option

  • Save MihuBot/e04f5fe4c614aed7f26c3dbf6ea17478 to your computer and use it in GitHub Desktop.

Select an option

Save MihuBot/e04f5fe4c614aed7f26c3dbf6ea17478 to your computer and use it in GitHub Desktop.
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_SliceSlice
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-QWBZLP : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-TSVTBF : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=Default  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=Default
MinIterationCount=3  WarmupCount=1
Method Toolchain Options Mean Error Ratio Allocated Alloc Ratio
Count Main None 389.1 ms 2.47 ms 1.00 - NA
Count PR None 391.0 ms 1.45 ms 1.00 - NA
Count Main IgnoreCase 770.5 ms 3.44 ms 1.00 - NA
Count PR IgnoreCase 718.8 ms 10.00 ms 0.93 - NA
Count Main Compiled 287.0 ms 2.84 ms 1.00 - NA
Count PR Compiled 286.8 ms 2.22 ms 1.00 - NA
Count Main IgnoreCase, Compiled 332.2 ms 0.85 ms 1.00 - NA
Count PR IgnoreCase, Compiled 335.1 ms 2.10 ms 1.01 - NA
Count Main NonBacktracking 403.9 ms 2.77 ms 1.00 - NA
Count PR NonBacktracking 401.3 ms 6.11 ms 0.99 - NA
Count Main IgnoreCase, NonBacktracking 689.0 ms 7.69 ms 1.00 - NA
Count PR IgnoreCase, NonBacktracking 728.0 ms 9.88 ms 1.06 - NA
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_RustLang_Sherlock
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1
Method Toolchain Pattern Options Mean Error Ratio Allocated Alloc Ratio
Count Main .* None 948,426.69 ns 2,204.536 ns 1.00 3 B 1.00
Count PR .* None 958,004.60 ns 7,180.308 ns 1.01 3 B 1.00
Count Main .* Compiled 544,471.10 ns 8,108.818 ns 1.00 4 B 1.00
Count PR .* Compiled 534,672.96 ns 1,664.020 ns 0.98 4 B 1.00
Count Main .* NonBacktracking 3,517,349.51 ns 8,312.527 ns 1.00 72 B 1.00
Count PR .* NonBacktracking 4,465,692.20 ns 43,746.065 ns 1.27 91 B 1.26
Count Main (?i)Holmes None 80,551.11 ns 2,013.490 ns 1.00 - NA
Count PR (?i)Holmes None 83,154.88 ns 2,143.759 ns 1.03 - NA
Count Main (?i)Holmes Compiled 42,021.97 ns 107.049 ns 1.00 - NA
Count PR (?i)Holmes Compiled 42,702.32 ns 373.849 ns 1.02 - NA
Count Main (?i)Holmes NonBacktracking 78,017.33 ns 2,137.453 ns 1.00 5 B 1.00
Count PR (?i)Holmes NonBacktracking 79,375.85 ns 2,341.318 ns 1.02 5 B 1.00
Count Main (?i)Sher[a-z]+|Hol[a-z]+ None 3,318,939.61 ns 6,010.401 ns 1.00 18 B 1.00
Count PR (?i)Sher[a-z]+|Hol[a-z]+ None 3,337,916.01 ns 5,762.086 ns 1.01 18 B 1.00
Count Main (?i)Sher[a-z]+|Hol[a-z]+ Compiled 120,856.55 ns 34,370.418 ns 1.00 1 B 1.00
Count PR (?i)Sher[a-z]+|Hol[a-z]+ Compiled 118,297.06 ns 31,613.984 ns 1.08 1 B 1.00
Count Main (?i)Sher[a-z]+|Hol[a-z]+ NonBacktracking 156,239.63 ns 30,888.784 ns 1.00 32 B 1.00
Count PR (?i)Sher[a-z]+|Hol[a-z]+ NonBacktracking 151,241.83 ns 30,005.666 ns 1.02 52 B 1.62
Count Main (?i)Sherlock None 63,891.32 ns 2,038.154 ns 1.00 - NA
Count PR (?i)Sherlock None 63,931.94 ns 2,434.704 ns 1.00 - NA
Count Main (?i)Sherlock Compiled 34,108.92 ns 115.395 ns 1.00 - NA
Count PR (?i)Sherlock Compiled 34,020.57 ns 131.239 ns 1.00 - NA
Count Main (?i)Sherlock NonBacktracking 60,746.04 ns 1,989.163 ns 1.00 4 B 1.00
Count PR (?i)Sherlock NonBacktracking 60,366.18 ns 2,333.403 ns 1.00 5 B 1.25
Count Main (?i)Sherlock Holmes None 64,445.24 ns 2,347.650 ns 1.00 - NA
Count PR (?i)Sherlock Holmes None 64,836.65 ns 2,363.699 ns 1.01 - NA
Count Main (?i)Sherlock Holmes Compiled 34,072.99 ns 233.933 ns 1.00 - NA
Count PR (?i)Sherlock Holmes Compiled 33,995.47 ns 163.061 ns 1.00 - NA
Count Main (?i)Sherlock Holmes NonBacktracking 63,785.64 ns 2,229.186 ns 1.00 6 B 1.00
Count PR (?i)Sherlock Holmes NonBacktracking 64,411.85 ns 2,101.263 ns 1.01 6 B 1.00
Count Main (?i)Sherlock|Holmes|Watson None 5,696,943.13 ns 7,269.553 ns 1.00 40 B 1.00
Count PR (?i)Sherlock|Holmes|Watson None 5,654,254.65 ns 6,325.078 ns 0.99 40 B 1.00
Count Main (?i)Sherlock|Holmes|Watson Compiled 127,621.29 ns 31,573.844 ns 1.00 1 B 1.00
Count PR (?i)Sherlock|Holmes|Watson Compiled 127,015.28 ns 32,123.549 ns 1.08 1 B 1.00
Count Main (?i)Sherlock|Holmes|Watson NonBacktracking 152,302.08 ns 33,164.748 ns 1.00 32 B 1.00
Count PR (?i)Sherlock|Holmes|Watson NonBacktracking 159,280.13 ns 31,292.711 ns 1.11 34 B 1.06
Count Main (?i)Sherlock|(...)er|John|Baker [49] None 17,844,970.92 ns 273,742.913 ns 1.00 190 B 1.00
Count PR (?i)Sherlock|(...)er|John|Baker [49] None 18,008,735.86 ns 303,087.724 ns 1.01 190 B 1.00
Count Main (?i)Sherlock|(...)er|John|Baker [49] Compiled 189,650.08 ns 28,263.772 ns 1.00 2 B 1.00
Count PR (?i)Sherlock|(...)er|John|Baker [49] Compiled 189,965.71 ns 27,671.446 ns 1.03 2 B 1.00
Count Main (?i)Sherlock|(...)er|John|Baker [49] NonBacktracking 230,741.35 ns 27,930.776 ns 1.00 138 B 1.00
Count PR (?i)Sherlock|(...)er|John|Baker [49] NonBacktracking 227,905.99 ns 27,649.884 ns 1.01 138 B 1.00
Count Main (?i)the None 568,581.79 ns 5,347.910 ns 1.00 2 B 1.00
Count PR (?i)the None 568,622.80 ns 8,149.730 ns 1.00 2 B 1.00
Count Main (?i)the Compiled 204,418.67 ns 1,542.851 ns 1.00 1 B 1.00
Count PR (?i)the Compiled 211,779.12 ns 5,073.460 ns 1.04 1 B 1.00
Count Main (?i)the NonBacktracking 510,842.66 ns 3,438.846 ns 1.00 13 B 1.00
Count PR (?i)the NonBacktracking 509,528.03 ns 3,465.423 ns 1.00 13 B 1.00
Count Main (?m)^Sherlock(...)rlock Holmes$ [37] None 35,154.71 ns 270.981 ns 1.00 - NA
Count PR (?m)^Sherlock(...)rlock Holmes$ [37] None 36,071.29 ns 829.375 ns 1.03 - NA
Count Main (?m)^Sherlock(...)rlock Holmes$ [37] Compiled 32,471.43 ns 143.264 ns 1.00 - NA
Count PR (?m)^Sherlock(...)rlock Holmes$ [37] Compiled 32,664.12 ns 132.154 ns 1.01 - NA
Count Main (?m)^Sherlock(...)rlock Holmes$ [37] NonBacktracking 38,676.52 ns 148.245 ns 1.00 13 B 1.00
Count PR (?m)^Sherlock(...)rlock Holmes$ [37] NonBacktracking 39,060.68 ns 89.136 ns 1.01 13 B 1.00
Count Main (?s).* None 976,111.00 ns 519.088 ns 1.00 3 B 1.00
Count PR (?s).* None 976,371.43 ns 178.891 ns 1.00 3 B 1.00
Count Main (?s).* Compiled 33.49 ns 0.044 ns 1.00 - NA
Count PR (?s).* Compiled 33.57 ns 0.056 ns 1.00 - NA
Count Main (?s).* NonBacktracking 2,898,832.55 ns 19,225.563 ns 1.00 60 B 1.00
Count PR (?s).* NonBacktracking 2,893,759.43 ns 3,369.877 ns 1.00 60 B 1.00
Count Main [^\\n]* None 948,765.06 ns 1,358.522 ns 1.00 3 B 1.00
Count PR [^\\n]* None 954,931.39 ns 2,449.623 ns 1.01 3 B 1.00
Count Main [^\\n]* Compiled 536,945.15 ns 1,449.446 ns 1.00 4 B 1.00
Count PR [^\\n]* Compiled 538,153.08 ns 1,704.120 ns 1.00 4 B 1.00
Count Main [^\\n]* NonBacktracking 3,591,499.16 ns 32,707.959 ns 1.00 72 B 1.00
Count PR [^\\n]* NonBacktracking 3,517,042.66 ns 8,954.031 ns 0.98 72 B 1.00
Count Main [a-q][^u-z]{13}x None 35,507.42 ns 128.323 ns 1.00 - NA
Count PR [a-q][^u-z]{13}x None 35,786.57 ns 210.498 ns 1.01 - NA
Count Main [a-q][^u-z]{13}x Compiled 23,087.97 ns 158.911 ns 1.00 - NA
Count PR [a-q][^u-z]{13}x Compiled 23,230.35 ns 81.710 ns 1.01 - NA
Count Main [a-q][^u-z]{13}x NonBacktracking 36,697.93 ns 107.175 ns 1.00 214 B 1.00
Count PR [a-q][^u-z]{13}x NonBacktracking 36,837.30 ns 137.972 ns 1.00 214 B 1.00
Count Main [a-zA-Z]+ing None 9,414,565.62 ns 11,037.470 ns 1.00 29 B 1.00
Count PR [a-zA-Z]+ing None 9,447,687.52 ns 8,517.283 ns 1.00 29 B 1.00
Count Main [a-zA-Z]+ing Compiled 3,357,854.87 ns 14,204.537 ns 1.00 25 B 1.00
Count PR [a-zA-Z]+ing Compiled 3,339,498.84 ns 3,136.717 ns 0.99 25 B 1.00
Count Main [a-zA-Z]+ing NonBacktracking 3,721,095.15 ns 7,673.398 ns 1.00 686 B 1.00
Count PR [a-zA-Z]+ing NonBacktracking 3,776,069.89 ns 5,591.436 ns 1.01 686 B 1.00
Count Main \b\w+n\b None 16,858,492.92 ns 22,066.019 ns 1.00 62 B 1.00
Count PR \b\w+n\b None 16,868,513.06 ns 9,226.260 ns 1.00 62 B 1.00
Count Main \b\w+n\b Compiled 6,344,591.35 ns 4,372.545 ns 1.00 43 B 1.00
Count PR \b\w+n\b Compiled 5,886,672.47 ns 4,211.826 ns 0.93 43 B 1.00
Count Main \b\w+n\b NonBacktracking 4,687,590.43 ns 6,185.454 ns 1.00 466 B 1.00
Count PR \b\w+n\b NonBacktracking 4,764,622.96 ns 5,150.712 ns 1.02 466 B 1.00
Count Main \p{L} None 17,729,652.55 ns 21,274.716 ns 1.00 64 B 1.00
Count PR \p{L} None 18,100,626.73 ns 38,473.223 ns 1.02 64 B 1.00
Count Main \p{L} Compiled 9,144,916.26 ns 16,757.574 ns 1.00 47 B 1.00
Count PR \p{L} Compiled 8,965,808.07 ns 37,320.869 ns 0.98 47 B 1.00
Count Main \p{L} NonBacktracking 18,264,707.12 ns 46,782.791 ns 1.00 432 B 1.00
Count PR \p{L} NonBacktracking 16,414,098.72 ns 73,104.863 ns 0.90 378 B 0.88
Count Main \p{Ll} None 17,022,362.24 ns 14,719.817 ns 1.00 60 B 1.00
Count PR \p{Ll} None 17,342,402.10 ns 83,599.086 ns 1.02 64 B 1.07
Count Main \p{Ll} Compiled 8,623,686.18 ns 13,733.852 ns 1.00 47 B 1.00
Count PR \p{Ll} Compiled 8,846,458.93 ns 6,830.378 ns 1.03 47 B 1.00
Count Main \p{Ll} NonBacktracking 15,905,547.03 ns 239,399.766 ns 1.00 378 B 1.00
Count PR \p{Ll} NonBacktracking 17,773,207.39 ns 54,755.707 ns 1.12 432 B 1.14
Count Main \p{Lu} None 1,292,256.65 ns 6,994.647 ns 1.00 4 B 1.00
Count PR \p{Lu} None 1,280,005.26 ns 4,241.256 ns 0.99 4 B 1.00
Count Main \p{Lu} Compiled 354,864.20 ns 7,232.753 ns 1.00 2 B 1.00
Count PR \p{Lu} Compiled 393,425.75 ns 11,051.688 ns 1.11 2 B 1.00
Count Main \p{Lu} NonBacktracking 1,207,396.40 ns 10,434.912 ns 1.00 29 B 1.00
Count PR \p{Lu} NonBacktracking 1,227,136.86 ns 12,887.210 ns 1.02 29 B 1.00
Count Main \s[a-zA-Z]{0,12}ing\s None 10,055,780.74 ns 15,295.411 ns 1.00 31 B 1.00
Count PR \s[a-zA-Z]{0,12}ing\s None 10,116,817.35 ns 21,438.292 ns 1.01 31 B 1.00
Count Main \s[a-zA-Z]{0,12}ing\s Compiled 3,360,574.27 ns 2,431.210 ns 1.00 25 B 1.00
Count PR \s[a-zA-Z]{0,12}ing\s Compiled 3,361,559.65 ns 3,359.920 ns 1.00 25 B 1.00
Count Main \s[a-zA-Z]{0,12}ing\s NonBacktracking 2,161,322.80 ns 14,159.563 ns 1.00 1353 B 1.00
Count PR \s[a-zA-Z]{0,12}ing\s NonBacktracking 2,075,869.63 ns 13,885.927 ns 0.96 1353 B 1.00
Count Main \w+ None 6,501,471.84 ns 41,516.787 ns 1.00 19 B 1.00
Count PR \w+ None 6,463,278.04 ns 6,757.874 ns 0.99 19 B 1.00
Count Main \w+ Compiled 4,024,547.72 ns 8,004.981 ns 1.00 30 B 1.00
Count PR \w+ Compiled 4,037,647.50 ns 10,372.501 ns 1.00 30 B 1.00
Count Main \w+ NonBacktracking 7,560,115.81 ns 13,985.995 ns 1.00 440 B 1.00
Count PR \w+ NonBacktracking 7,543,771.16 ns 19,006.787 ns 1.00 440 B 1.00
Count Main \w+\s+Holmes None 7,208,289.58 ns 22,717.602 ns 1.00 20 B 1.00
Count PR \w+\s+Holmes None 7,207,652.75 ns 15,509.679 ns 1.00 20 B 1.00
Count Main \w+\s+Holmes Compiled 2,886,382.87 ns 4,795.436 ns 1.00 21 B 1.00
Count PR \w+\s+Holmes Compiled 2,889,397.12 ns 5,559.433 ns 1.00 21 B 1.00
Count Main \w+\s+Holmes NonBacktracking 1,898,165.82 ns 3,034.940 ns 1.00 318 B 1.00
Count PR \w+\s+Holmes NonBacktracking 1,895,904.92 ns 1,885.435 ns 1.00 318 B 1.00
Count Main \w+\s+Holmes\s+\w+ None 7,198,930.13 ns 10,017.485 ns 1.00 20 B 1.00
Count PR \w+\s+Holmes\s+\w+ None 7,258,854.33 ns 13,468.622 ns 1.01 20 B 1.00
Count Main \w+\s+Holmes\s+\w+ Compiled 3,093,325.83 ns 42,350.137 ns 1.00 28 B 1.00
Count PR \w+\s+Holmes\s+\w+ Compiled 3,088,584.41 ns 41,634.500 ns 1.00 28 B 1.00
Count Main \w+\s+Holmes\s+\w+ NonBacktracking 1,881,303.85 ns 2,670.001 ns 1.00 453 B 1.00
Count PR \w+\s+Holmes\s+\w+ NonBacktracking 2,092,844.16 ns 187,384.152 ns 1.11 453 B 1.00
Count Main aei None 29,937.50 ns 577.648 ns 1.00 - NA
Count PR aei None 30,828.30 ns 583.989 ns 1.03 - NA
Count Main aei Compiled 28,528.15 ns 538.855 ns 1.00 - NA
Count PR aei Compiled 28,503.00 ns 540.082 ns 1.00 - NA
Count Main aei NonBacktracking 30,695.87 ns 583.748 ns 1.00 - NA
Count PR aei NonBacktracking 30,825.77 ns 576.768 ns 1.00 - NA
Count Main aqj None 28,204.41 ns 381.786 ns 1.00 - NA
Count PR aqj None 28,456.18 ns 432.748 ns 1.01 - NA
Count Main aqj Compiled 28,730.81 ns 607.758 ns 1.00 - NA
Count PR aqj Compiled 28,402.50 ns 593.559 ns 0.99 - NA
Count Main aqj NonBacktracking 28,417.96 ns 466.325 ns 1.00 - NA
Count PR aqj NonBacktracking 28,441.87 ns 410.960 ns 1.00 - NA
Count Main Holmes None 48,149.63 ns 227.829 ns 1.00 - NA
Count PR Holmes None 48,701.87 ns 258.698 ns 1.01 - NA
Count Main Holmes Compiled 39,217.04 ns 106.566 ns 1.00 - NA
Count PR Holmes Compiled 39,274.86 ns 137.791 ns 1.00 - NA
Count Main Holmes NonBacktracking 51,976.25 ns 93.536 ns 1.00 3 B 1.00
Count PR Holmes NonBacktracking 51,717.86 ns 128.329 ns 1.00 3 B 1.00
Count Main Holmes.{0,25}(...).{0,25}Holmes [39] None 187,731.66 ns 598.417 ns 1.00 1 B 1.00
Count PR Holmes.{0,25}(...).{0,25}Holmes [39] None 187,692.87 ns 626.626 ns 1.00 1 B 1.00
Count Main Holmes.{0,25}(...).{0,25}Holmes [39] Compiled 47,365.76 ns 101.110 ns 1.00 - NA
Count PR Holmes.{0,25}(...).{0,25}Holmes [39] Compiled 47,240.32 ns 328.969 ns 1.00 - NA
Count Main Holmes.{0,25}(...).{0,25}Holmes [39] NonBacktracking 80,805.62 ns 205.603 ns 1.00 167 B 1.00
Count PR Holmes.{0,25}(...).{0,25}Holmes [39] NonBacktracking 80,520.46 ns 184.343 ns 1.00 166 B 0.99
Count Main Sher[a-z]+|Hol[a-z]+ None 123,906.48 ns 492.986 ns 1.00 1 B 1.00
Count PR Sher[a-z]+|Hol[a-z]+ None 122,664.41 ns 351.470 ns 0.99 1 B 1.00
Count Main Sher[a-z]+|Hol[a-z]+ Compiled 48,618.99 ns 233.039 ns 1.00 - NA
Count PR Sher[a-z]+|Hol[a-z]+ Compiled 48,482.74 ns 193.004 ns 1.00 - NA
Count Main Sher[a-z]+|Hol[a-z]+ NonBacktracking 86,458.22 ns 210.644 ns 1.00 20 B 1.00
Count PR Sher[a-z]+|Hol[a-z]+ NonBacktracking 87,578.92 ns 450.550 ns 1.01 21 B 1.05
Count Main Sherlock None 34,311.05 ns 163.947 ns 1.00 - NA
Count PR Sherlock None 34,355.06 ns 152.181 ns 1.00 - NA
Count Main Sherlock Compiled 31,802.34 ns 94.860 ns 1.00 - NA
Count PR Sherlock Compiled 32,051.52 ns 189.092 ns 1.01 - NA
Count Main Sherlock NonBacktracking 36,022.61 ns 251.274 ns 1.00 3 B 1.00
Count PR Sherlock NonBacktracking 36,220.42 ns 144.899 ns 1.01 3 B 1.00
Count Main Sherlock Holmes None 34,631.04 ns 152.253 ns 1.00 - NA
Count PR Sherlock Holmes None 34,743.79 ns 102.078 ns 1.00 - NA
Count Main Sherlock Holmes Compiled 32,808.06 ns 201.740 ns 1.00 - NA
Count PR Sherlock Holmes Compiled 32,939.54 ns 177.660 ns 1.00 - NA
Count Main Sherlock Holmes NonBacktracking 37,492.86 ns 143.933 ns 1.00 4 B 1.00
Count PR Sherlock Holmes NonBacktracking 37,133.48 ns 172.361 ns 0.99 3 B 0.75
Count Main Sherlock\s+Holmes None 36,249.19 ns 195.611 ns 1.00 - NA
Count PR Sherlock\s+Holmes None 35,969.57 ns 182.840 ns 0.99 - NA
Count Main Sherlock\s+Holmes Compiled 32,420.64 ns 180.524 ns 1.00 - NA
Count PR Sherlock\s+Holmes Compiled 32,420.32 ns 189.199 ns 1.00 - NA
Count Main Sherlock\s+Holmes NonBacktracking 39,988.21 ns 247.509 ns 1.00 6 B 1.00
Count PR Sherlock\s+Holmes NonBacktracking 40,085.17 ns 160.907 ns 1.00 6 B 1.00
Count Main Sherlock|Holmes None 115,188.90 ns 234.095 ns 1.00 - NA
Count PR Sherlock|Holmes None 114,634.66 ns 372.924 ns 1.00 - NA
Count Main Sherlock|Holmes Compiled 45,058.27 ns 146.475 ns 1.00 - NA
Count PR Sherlock|Holmes Compiled 45,373.08 ns 186.765 ns 1.01 - NA
Count Main Sherlock|Holmes NonBacktracking 83,121.99 ns 96.393 ns 1.00 19 B 1.00
Count PR Sherlock|Holmes NonBacktracking 82,982.33 ns 247.551 ns 1.00 19 B 1.00
Count Main Sherlock|Holmes|Watson None 174,412.37 ns 477.931 ns 1.00 1 B 1.00
Count PR Sherlock|Holmes|Watson None 177,112.80 ns 828.278 ns 1.02 1 B 1.00
Count Main Sherlock|Holmes|Watson Compiled 59,219.21 ns 168.669 ns 1.00 - NA
Count PR Sherlock|Holmes|Watson Compiled 59,176.43 ns 147.009 ns 1.00 - NA
Count Main Sherlock|Holmes|Watson NonBacktracking 103,524.46 ns 292.504 ns 1.00 28 B 1.00
Count PR Sherlock|Holmes|Watson NonBacktracking 103,995.89 ns 288.337 ns 1.00 28 B 1.00
Count Main Sherlock|Holm(...)er|John|Baker [45] None 1,472,548.51 ns 3,117.228 ns 1.00 10 B 1.00
Count PR Sherlock|Holm(...)er|John|Baker [45] None 1,508,882.40 ns 3,270.972 ns 1.02 10 B 1.00
Count Main Sherlock|Holm(...)er|John|Baker [45] Compiled 87,809.56 ns 74.544 ns 1.00 1 B 1.00
Count PR Sherlock|Holm(...)er|John|Baker [45] Compiled 88,374.43 ns 1,017.795 ns 1.01 1 B 1.00
Count Main Sherlock|Holm(...)er|John|Baker [45] NonBacktracking 883,829.87 ns 1,441.989 ns 1.00 449 B 1.00
Count PR Sherlock|Holm(...)er|John|Baker [45] NonBacktracking 883,498.35 ns 1,218.155 ns 1.00 449 B 1.00
Count Main Sherlock|Street None 52,645.45 ns 166.545 ns 1.00 - NA
Count PR Sherlock|Street None 52,908.36 ns 176.237 ns 1.01 - NA
Count Main Sherlock|Street Compiled 25,279.56 ns 82.646 ns 1.00 - NA
Count PR Sherlock|Street Compiled 25,157.27 ns 152.706 ns 1.00 - NA
Count Main Sherlock|Street NonBacktracking 38,174.68 ns 104.002 ns 1.00 6 B 1.00
Count PR Sherlock|Street NonBacktracking 38,241.46 ns 104.567 ns 1.00 6 B 1.00
Count Main the None 340,222.06 ns 16,660.537 ns 1.00 1 B 1.00
Count PR the None 342,509.46 ns 15,855.615 ns 1.01 1 B 1.00
Count Main the Compiled 171,268.55 ns 1,192.363 ns 1.00 1 B 1.00
Count PR the Compiled 170,902.50 ns 361.282 ns 1.00 1 B 1.00
Count Main the NonBacktracking 396,400.96 ns 7,933.361 ns 1.00 10 B 1.00
Count PR the NonBacktracking 390,996.23 ns 7,545.882 ns 0.99 10 B 1.00
Count Main The None 59,389.36 ns 314.330 ns 1.00 - NA
Count PR The None 59,049.39 ns 103.110 ns 0.99 - NA
Count Main The Compiled 44,177.27 ns 163.796 ns 1.00 - NA
Count PR The Compiled 43,911.27 ns 200.092 ns 0.99 - NA
Count Main The NonBacktracking 59,872.09 ns 116.930 ns 1.00 1 B 1.00
Count PR The NonBacktracking 59,748.72 ns 110.342 ns 1.00 1 B 1.00
Count Main the\s+\w+ None 632,945.94 ns 4,120.886 ns 1.00 2 B 1.00
Count PR the\s+\w+ None 628,910.21 ns 6,106.867 ns 0.99 2 B 1.00
Count Main the\s+\w+ Compiled 267,108.65 ns 1,660.415 ns 1.00 2 B 1.00
Count PR the\s+\w+ Compiled 269,089.96 ns 4,234.804 ns 1.01 2 B 1.00
Count Main the\s+\w+ NonBacktracking 699,854.88 ns 2,465.375 ns 1.00 181 B 1.00
Count PR the\s+\w+ NonBacktracking 690,327.24 ns 1,731.625 ns 0.99 181 B 1.00
Count Main zqj None 27,844.30 ns 555.465 ns 1.00 - NA
Count PR zqj None 28,164.76 ns 431.129 ns 1.01 - NA
Count Main zqj Compiled 28,473.94 ns 541.796 ns 1.00 - NA
Count PR zqj Compiled 28,781.99 ns 592.802 ns 1.01 - NA
Count Main zqj NonBacktracking 27,997.33 ns 528.672 ns 1.00 - NA
Count PR zqj NonBacktracking 28,254.49 ns 460.268 ns 1.01 - NA
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_Rebar_Russian
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1
Method Toolchain Pattern Options Mean Error Ratio Allocated Alloc Ratio
Count Main (?i)Шерлок Холмс None 217.01 μs 3.152 μs 1.00 1 B 1.00
Count PR (?i)Шерлок Холмс None 213.87 μs 1.113 μs 0.99 1 B 1.00
Count Main (?i)Шерлок Холмс Compiled 104.39 μs 0.175 μs 1.00 1 B 1.00
Count PR (?i)Шерлок Холмс Compiled 103.98 μs 0.296 μs 1.00 1 B 1.00
Count Main (?i)Шерлок Холмс NonBacktracking 164.47 μs 0.697 μs 1.00 14 B 1.00
Count PR (?i)Шерлок Холмс NonBacktracking 165.20 μs 0.622 μs 1.00 15 B 1.07
Count Main (?i)Шерлок Хо(...)ссор Мориарти [77] None 18,002.97 μs 27.957 μs 1.00 153 B 1.00
Count PR (?i)Шерлок Хо(...)ссор Мориарти [77] None 18,043.98 μs 14.485 μs 1.00 153 B 1.00
Count Main (?i)Шерлок Хо(...)ссор Мориарти [77] Compiled 1,718.52 μs 5.382 μs 1.00 26 B 1.00
Count PR (?i)Шерлок Хо(...)ссор Мориарти [77] Compiled 1,708.46 μs 4.397 μs 0.99 26 B 1.00
Count Main (?i)Шерлок Хо(...)ссор Мориарти [77] NonBacktracking 11,003.73 μs 9.351 μs 1.00 9488 B 1.00
Count PR (?i)Шерлок Хо(...)ссор Мориарти [77] NonBacktracking 11,003.80 μs 19.879 μs 1.00 9488 B 1.00
Count Main Шерлок Холмс None 77.68 μs 0.653 μs 1.00 - NA
Count PR Шерлок Холмс None 77.69 μs 0.978 μs 1.00 - NA
Count Main Шерлок Холмс Compiled 74.79 μs 0.405 μs 1.00 - NA
Count PR Шерлок Холмс Compiled 74.11 μs 0.954 μs 0.99 - NA
Count Main Шерлок Холмс NonBacktracking 91.86 μs 0.168 μs 1.00 8 B 1.00
Count PR Шерлок Холмс NonBacktracking 92.94 μs 0.642 μs 1.01 8 B 1.00
Count Main Шерлок Холмс|(...)ссор Мориарти [73] None 4,515.09 μs 9.564 μs 1.00 22 B 1.00
Count PR Шерлок Холмс|(...)ссор Мориарти [73] None 4,487.33 μs 5.343 μs 0.99 22 B 1.00
Count Main Шерлок Холмс|(...)ссор Мориарти [73] Compiled 1,756.11 μs 4.371 μs 1.00 16 B 1.00
Count PR Шерлок Холмс|(...)ссор Мориарти [73] Compiled 1,754.46 μs 1.707 μs 1.00 16 B 1.00
Count Main Шерлок Холмс|(...)ссор Мориарти [73] NonBacktracking 3,154.13 μs 2.891 μs 1.00 3719 B 1.00
Count PR Шерлок Холмс|(...)ссор Мориарти [73] NonBacktracking 3,169.85 μs 14.996 μs 1.00 3719 B 1.00
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_Rebar_Chinese
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1
Method Toolchain Pattern Options Mean Error Ratio Allocated Alloc Ratio
Count Main 夏洛克·福尔摩斯 None 17.58 μs 0.142 μs 1.00 - NA
Count PR 夏洛克·福尔摩斯 None 17.36 μs 0.199 μs 0.99 - NA
Count Main 夏洛克·福尔摩斯 Compiled 23.15 μs 0.152 μs 1.00 - NA
Count PR 夏洛克·福尔摩斯 Compiled 23.06 μs 0.159 μs 1.00 - NA
Count Main 夏洛克·福尔摩斯 NonBacktracking 18.14 μs 0.141 μs 1.00 1 B 1.00
Count PR 夏洛克·福尔摩斯 NonBacktracking 17.97 μs 0.139 μs 0.99 1 B 1.00
Count Main 夏洛克·福尔摩斯|约翰华生|阿德勒|雷斯垂德|莫里亚蒂教授 None 69.70 μs 0.146 μs 1.00 - NA
Count PR 夏洛克·福尔摩斯|约翰华生|阿德勒|雷斯垂德|莫里亚蒂教授 None 69.43 μs 0.192 μs 1.00 - NA
Count Main 夏洛克·福尔摩斯|约翰华生|阿德勒|雷斯垂德|莫里亚蒂教授 Compiled 39.27 μs 0.077 μs 1.00 - NA
Count PR 夏洛克·福尔摩斯|约翰华生|阿德勒|雷斯垂德|莫里亚蒂教授 Compiled 39.37 μs 0.100 μs 1.00 - NA
Count Main 夏洛克·福尔摩斯|约翰华生|阿德勒|雷斯垂德|莫里亚蒂教授 NonBacktracking 49.88 μs 0.106 μs 1.00 25 B 1.00
Count PR 夏洛克·福尔摩斯|约翰华生|阿德勒|雷斯垂德|莫里亚蒂教授 NonBacktracking 49.99 μs 0.164 μs 1.00 25 B 1.00
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_Mariomkas
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-TPEJOW : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-HKHXHK : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  PowerPlanMode=  IterationTime=250ms
MaxIterationCount=20  MinIterationCount=15  WarmupCount=1
Method Toolchain Pattern Options Mean Error Ratio Allocated Alloc Ratio
Ctor Main (?:(?:250-5]?[0-9][0-9]) [87] None 5.159 μs 0.0293 μs 1.00 8176 B 1.00
Ctor PR (?:(?:250-5]?[0-9][0-9]) [87] None 5.194 μs 0.0286 μs 1.01 8176 B 1.00
Count Main (?:(?:250-5]?[0-9][0-9]) [87] None 7,665.616 μs 9.8059 μs 1.00 42 B 1.00
Count PR (?:(?:250-5]?[0-9][0-9]) [87] None 7,695.320 μs 31.0025 μs 1.00 62 B 1.48
Ctor Main (?:(?:250-5]?[0-9][0-9]) [87] Compiled 19.490 μs 0.1490 μs 1.00 33256 B 1.00
Ctor PR (?:(?:250-5]?[0-9][0-9]) [87] Compiled 19.422 μs 0.1327 μs 1.00 33256 B 1.00
Count Main (?:(?:250-5]?[0-9][0-9]) [87] Compiled 2,736.696 μs 26.3709 μs 1.00 31 B 1.00
Count PR (?:(?:250-5]?[0-9][0-9]) [87] Compiled 2,659.489 μs 4.9927 μs 0.97 31 B 1.00
Ctor Main (?:(?:250-5]?[0-9][0-9]) [87] NonBacktracking 96.585 μs 1.0139 μs 1.00 301024 B 1.00
Ctor PR (?:(?:250-5]?[0-9][0-9]) [87] NonBacktracking 96.563 μs 0.8408 μs 1.00 301024 B 1.00
Count Main (?:(?:250-5]?[0-9][0-9]) [87] NonBacktracking 1,943.310 μs 5.1217 μs 1.00 1531 B 1.00
Count PR (?:(?:250-5]?[0-9][0-9]) [87] NonBacktracking 1,900.394 μs 7.8958 μs 0.98 1361 B 0.89
Ctor Main [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] None 2.445 μs 0.0185 μs 1.00 4840 B 1.00
Ctor PR [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] None 2.457 μs 0.0163 μs 1.00 4840 B 1.00
Count Main [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] None 1,529.436 μs 3.0052 μs 1.00 10 B 1.00
Count PR [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] None 1,515.091 μs 4.0723 μs 0.99 10 B 1.00
Ctor Main [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] Compiled 15.505 μs 0.1014 μs 1.00 23264 B 1.00
Ctor PR [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] Compiled 15.370 μs 0.1140 μs 0.99 23264 B 1.00
Count Main [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] Compiled 1,426.044 μs 671.6755 μs 1.00 11 B 1.00
Count PR [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] Compiled 780.720 μs 1.2619 μs 0.66 9 B 0.82
Ctor Main [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] NonBacktracking 868.595 μs 12.3026 μs 1.00 1396855 B 1.00
Ctor PR [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] NonBacktracking 865.300 μs 10.9745 μs 1.00 1396855 B 1.00
Count Main [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] NonBacktracking 1,856.165 μs 2.1649 μs 1.00 865 B 1.00
Count PR [\w]+://[^/\s(...)?(?:#[^\\s]*)? [51] NonBacktracking 1,858.287 μs 2.9030 μs 1.00 865 B 1.00
Ctor Main [\w\.+-]+@[\w\.-]+\.[\w\.-]+ None 1.404 μs 0.0088 μs 1.00 2824 B 1.00
Ctor PR [\w\.+-]+@[\w\.-]+\.[\w\.-]+ None 1.383 μs 0.0073 μs 0.99 2824 B 1.00
Count Main [\w\.+-]+@[\w\.-]+\.[\w\.-]+ None 223.119 μs 1.5214 μs 1.00 1 B 1.00
Count PR [\w\.+-]+@[\w\.-]+\.[\w\.-]+ None 223.154 μs 1.0137 μs 1.00 1 B 1.00
Ctor Main [\w\.+-]+@[\w\.-]+\.[\w\.-]+ Compiled 12.762 μs 0.0870 μs 1.00 13928 B 1.00
Ctor PR [\w\.+-]+@[\w\.-]+\.[\w\.-]+ Compiled 12.680 μs 0.1027 μs 0.99 13928 B 1.00
Count Main [\w\.+-]+@[\w\.-]+\.[\w\.-]+ Compiled 193.447 μs 0.8923 μs 1.00 2 B 1.00
Count PR [\w\.+-]+@[\w\.-]+\.[\w\.-]+ Compiled 193.057 μs 0.6205 μs 1.00 2 B 1.00
Ctor Main [\w\.+-]+@[\w\.-]+\.[\w\.-]+ NonBacktracking 422.478 μs 5.0863 μs 1.00 866953 B 1.00
Ctor PR [\w\.+-]+@[\w\.-]+\.[\w\.-]+ NonBacktracking 433.999 μs 7.7218 μs 1.03 866953 B 1.00
Count Main [\w\.+-]+@[\w\.-]+\.[\w\.-]+ NonBacktracking 211.590 μs 1.1039 μs 1.00 67 B 1.00
Count PR [\w\.+-]+@[\w\.-]+\.[\w\.-]+ NonBacktracking 211.944 μs 0.8409 μs 1.00 67 B 1.00
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_Leipzig
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1
Method Toolchain Pattern Options Mean Error Ratio Allocated Alloc Ratio
Count Main .{0,2}(Tom|Sawyer|Huckleberry|Finn) None 2,636,031.5 μs 3,611.19 μs 1.00 1496 B 1.00
Count PR .{0,2}(Tom|Sawyer|Huckleberry|Finn) None 2,639,666.2 μs 3,619.57 μs 1.00 1496 B 1.00
Count Main .{0,2}(Tom|Sawyer|Huckleberry|Finn) Compiled 132,063.7 μs 81.11 μs 1.00 1112 B 1.00
Count PR .{0,2}(Tom|Sawyer|Huckleberry|Finn) Compiled 132,025.2 μs 55.41 μs 1.00 1112 B 1.00
Count Main .{0,2}(Tom|Sawyer|Huckleberry|Finn) NonBacktracking 49,830.8 μs 40.21 μs 1.00 78666 B 1.00
Count PR .{0,2}(Tom|Sawyer|Huckleberry|Finn) NonBacktracking 49,838.4 μs 47.72 μs 1.00 78666 B 1.00
Count Main .{2,4}(Tom|Sawyer|Huckleberry|Finn) None 2,648,858.7 μs 4,053.37 μs 1.00 1496 B 1.00
Count PR .{2,4}(Tom|Sawyer|Huckleberry|Finn) None 2,635,602.1 μs 2,541.59 μs 0.99 1496 B 1.00
Count Main .{2,4}(Tom|Sawyer|Huckleberry|Finn) Compiled 138,786.3 μs 261.63 μs 1.00 1120 B 1.00
Count PR .{2,4}(Tom|Sawyer|Huckleberry|Finn) Compiled 138,821.3 μs 119.13 μs 1.00 1120 B 1.00
Count Main .{2,4}(Tom|Sawyer|Huckleberry|Finn) NonBacktracking 49,867.9 μs 336.18 μs 1.00 79262 B 1.00
Count PR .{2,4}(Tom|Sawyer|Huckleberry|Finn) NonBacktracking 50,346.1 μs 533.81 μs 1.01 79262 B 1.00
Count Main (?i)Tom|Sawyer|Huckleberry|Finn None 259,847.7 μs 529.91 μs 1.00 2328 B 1.00
Count PR (?i)Tom|Sawyer|Huckleberry|Finn None 264,028.5 μs 900.28 μs 1.02 2328 B 1.00
Count Main (?i)Tom|Sawyer|Huckleberry|Finn Compiled 2,970.0 μs 851.41 μs 1.00 17 B 1.00
Count PR (?i)Tom|Sawyer|Huckleberry|Finn Compiled 2,998.3 μs 871.28 μs 1.14 15 B 0.88
Count Main (?i)Tom|Sawyer|Huckleberry|Finn NonBacktracking 3,157.9 μs 842.89 μs 1.00 870 B 1.00
Count PR (?i)Tom|Sawyer|Huckleberry|Finn NonBacktracking 2,962.6 μs 848.43 μs 1.04 1740 B 2.00
Count Main (?i)Twain None 2,157.9 μs 49.14 μs 1.00 8 B 1.00
Count PR (?i)Twain None 2,182.0 μs 57.85 μs 1.01 8 B 1.00
Count Main (?i)Twain Compiled 993.6 μs 16.27 μs 1.00 7 B 1.00
Count PR (?i)Twain Compiled 982.0 μs 13.19 μs 0.99 7 B 1.00
Count Main (?i)Twain NonBacktracking 2,192.2 μs 49.98 μs 1.00 87 B 1.00
Count PR (?i)Twain NonBacktracking 2,186.1 μs 49.66 μs 1.00 87 B 1.00
Count Main ([A-Za-z]awyer|[A-Za-z]inn)\s None 590,513.4 μs 7,246.05 μs 1.00 1216 B 1.00
Count PR ([A-Za-z]awyer|[A-Za-z]inn)\s None 586,595.0 μs 3,425.43 μs 0.99 1216 B 1.00
Count Main ([A-Za-z]awyer|[A-Za-z]inn)\s Compiled 12,750.4 μs 8.79 μs 1.00 67 B 1.00
Count PR ([A-Za-z]awyer|[A-Za-z]inn)\s Compiled 12,760.2 μs 8.14 μs 1.00 67 B 1.00
Count Main ([A-Za-z]awyer|[A-Za-z]inn)\s NonBacktracking 13,793.8 μs 12.82 μs 1.00 2085 B 1.00
Count PR ([A-Za-z]awyer|[A-Za-z]inn)\s NonBacktracking 13,787.2 μs 12.62 μs 1.00 2085 B 1.00
Count Main [a-z]shing None 1,105.2 μs 11.99 μs 1.00 4 B 1.00
Count PR [a-z]shing None 1,126.4 μs 17.68 μs 1.02 4 B 1.00
Count Main [a-z]shing Compiled 982.9 μs 19.49 μs 1.00 7 B 1.00
Count PR [a-z]shing Compiled 988.3 μs 19.45 μs 1.01 7 B 1.00
Count Main [a-z]shing NonBacktracking 1,158.0 μs 21.90 μs 1.00 83 B 1.00
Count PR [a-z]shing NonBacktracking 1,132.5 μs 13.97 μs 0.98 83 B 1.00
Count Main \p{Sm} None 17,396.4 μs 223.56 μs 1.00 56 B 1.00
Count PR \p{Sm} None 17,328.8 μs 324.81 μs 1.00 64 B 1.14
Count Main \p{Sm} Compiled 726.1 μs 14.41 μs 1.00 4 B 1.00
Count PR \p{Sm} Compiled 719.3 μs 16.25 μs 0.99 4 B 1.00
Count Main \p{Sm} NonBacktracking 17,574.2 μs 55.70 μs 1.00 432 B 1.00
Count PR \p{Sm} NonBacktracking 17,524.1 μs 11.98 μs 1.00 432 B 1.00
Count Main Huck[a-zA-Z]+|Saw[a-zA-Z]+ None 3,590.2 μs 17.06 μs 1.00 13 B 1.00
Count PR Huck[a-zA-Z]+|Saw[a-zA-Z]+ None 3,629.5 μs 5.58 μs 1.01 13 B 1.00
Count Main Huck[a-zA-Z]+|Saw[a-zA-Z]+ Compiled 1,614.4 μs 5.41 μs 1.00 13 B 1.00
Count PR Huck[a-zA-Z]+|Saw[a-zA-Z]+ Compiled 1,618.6 μs 7.68 μs 1.00 13 B 1.00
Count Main Huck[a-zA-Z]+|Saw[a-zA-Z]+ NonBacktracking 1,738.1 μs 10.79 μs 1.00 432 B 1.00
Count PR Huck[a-zA-Z]+|Saw[a-zA-Z]+ NonBacktracking 1,737.5 μs 6.85 μs 1.00 432 B 1.00
Count Main Tom.{10,25}river|river.{10,25}Tom None 31,978.3 μs 34.95 μs 1.00 142 B 1.00
Count PR Tom.{10,25}river|river.{10,25}Tom None 32,173.3 μs 81.69 μs 1.01 142 B 1.00
Count Main Tom.{10,25}river|river.{10,25}Tom Compiled 1,182.2 μs 12.02 μs 1.00 10 B 1.00
Count PR Tom.{10,25}river|river.{10,25}Tom Compiled 1,189.4 μs 18.16 μs 1.01 10 B 1.00
Count Main Tom.{10,25}river|river.{10,25}Tom NonBacktracking 1,413.2 μs 17.11 μs 1.00 4428 B 1.00
Count PR Tom.{10,25}river|river.{10,25}Tom NonBacktracking 1,413.9 μs 13.98 μs 1.00 4059 B 0.92
Count Main Tom|Sawyer|Huckleberry|Finn None 9,121.9 μs 9.18 μs 1.00 40 B 1.00
Count PR Tom|Sawyer|Huckleberry|Finn None 9,041.9 μs 13.90 μs 0.99 40 B 1.00
Count Main Tom|Sawyer|Huckleberry|Finn Compiled 2,678.1 μs 7.31 μs 1.00 22 B 1.00
Count PR Tom|Sawyer|Huckleberry|Finn Compiled 2,670.5 μs 5.37 μs 1.00 22 B 1.00
Count Main Tom|Sawyer|Huckleberry|Finn NonBacktracking 3,505.2 μs 8.63 μs 1.00 1380 B 1.00
Count PR Tom|Sawyer|Huckleberry|Finn NonBacktracking 3,578.4 μs 14.61 μs 1.02 1380 B 1.00
Count Main Twain None 893.9 μs 11.21 μs 1.00 3 B 1.00
Count PR Twain None 898.4 μs 13.08 μs 1.01 3 B 1.00
Count Main Twain Compiled 935.6 μs 17.18 μs 1.00 5 B 1.00
Count PR Twain Compiled 918.9 μs 12.67 μs 0.98 5 B 1.00
Count Main Twain NonBacktracking 897.6 μs 16.65 μs 1.00 39 B 1.00
Count PR Twain NonBacktracking 876.7 μs 12.49 μs 0.98 39 B 1.00
System.Text.RegularExpressions.Tests.Perf_Regex_Industry_BoostDocs_Simple
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1
Method Toolchain Id Options Mean Error Ratio Allocated Alloc Ratio
IsMatch Main 0 None 40.71 ns 0.047 ns 1.00 - NA
IsMatch PR 0 None 40.80 ns 0.071 ns 1.00 - NA
IsMatch Main 0 Compiled 20.37 ns 0.493 ns 1.00 - NA
IsMatch PR 0 Compiled 19.83 ns 0.033 ns 0.97 - NA
IsMatch Main 0 NonBacktracking 43.18 ns 0.828 ns 1.00 - NA
IsMatch PR 0 NonBacktracking 42.49 ns 0.398 ns 0.98 - NA
IsMatch Main 1 None 103.11 ns 1.314 ns 1.00 - NA
IsMatch PR 1 None 101.53 ns 0.279 ns 0.98 - NA
IsMatch Main 1 Compiled 44.73 ns 0.377 ns 1.00 - NA
IsMatch PR 1 Compiled 44.08 ns 0.171 ns 0.99 - NA
IsMatch Main 1 NonBacktracking 219.17 ns 0.606 ns 1.00 - NA
IsMatch PR 1 NonBacktracking 221.81 ns 2.665 ns 1.01 - NA
IsMatch Main 2 None 155.80 ns 3.077 ns 1.00 - NA
IsMatch PR 2 None 155.99 ns 3.117 ns 1.00 - NA
IsMatch Main 2 Compiled 48.39 ns 0.026 ns 1.00 - NA
IsMatch PR 2 Compiled 48.53 ns 0.039 ns 1.00 - NA
IsMatch Main 2 NonBacktracking 95.60 ns 2.220 ns 1.00 - NA
IsMatch PR 2 NonBacktracking 95.50 ns 1.967 ns 1.00 - NA
IsMatch Main 3 None 251.89 ns 0.554 ns 1.00 - NA
IsMatch PR 3 None 250.79 ns 0.478 ns 1.00 - NA
IsMatch Main 3 Compiled 81.40 ns 0.429 ns 1.00 - NA
IsMatch PR 3 Compiled 81.24 ns 0.276 ns 1.00 - NA
IsMatch Main 3 NonBacktracking 73.75 ns 0.121 ns 1.00 - NA
IsMatch PR 3 NonBacktracking 74.42 ns 0.471 ns 1.01 - NA
IsMatch Main 4 None 211.97 ns 0.437 ns 1.00 - NA
IsMatch PR 4 None 210.93 ns 0.415 ns 1.00 - NA
IsMatch Main 4 Compiled 71.66 ns 0.139 ns 1.00 - NA
IsMatch PR 4 Compiled 71.81 ns 0.160 ns 1.00 - NA
IsMatch Main 4 NonBacktracking 55.14 ns 0.133 ns 1.00 - NA
IsMatch PR 4 NonBacktracking 54.12 ns 0.117 ns 0.98 - NA
IsMatch Main 5 None 218.01 ns 3.327 ns 1.00 - NA
IsMatch PR 5 None 216.03 ns 2.103 ns 0.99 - NA
IsMatch Main 5 Compiled 73.55 ns 2.105 ns 1.00 - NA
IsMatch PR 5 Compiled 71.30 ns 0.156 ns 0.97 - NA
IsMatch Main 5 NonBacktracking 60.71 ns 0.167 ns 1.00 - NA
IsMatch PR 5 NonBacktracking 60.75 ns 0.139 ns 1.00 - NA
IsMatch Main 6 None 71.60 ns 0.106 ns 1.00 - NA
IsMatch PR 6 None 72.08 ns 0.731 ns 1.01 - NA
IsMatch Main 6 Compiled 22.59 ns 0.035 ns 1.00 - NA
IsMatch PR 6 Compiled 23.67 ns 1.203 ns 1.05 - NA
IsMatch Main 6 NonBacktracking 41.87 ns 0.058 ns 1.00 - NA
IsMatch PR 6 NonBacktracking 41.43 ns 0.073 ns 0.99 - NA
IsMatch Main 7 None 70.27 ns 0.080 ns 1.00 - NA
IsMatch PR 7 None 70.69 ns 0.469 ns 1.01 - NA
IsMatch Main 7 Compiled 23.29 ns 0.439 ns 1.00 - NA
IsMatch PR 7 Compiled 23.29 ns 0.161 ns 1.00 - NA
IsMatch Main 7 NonBacktracking 37.52 ns 0.047 ns 1.00 - NA
IsMatch PR 7 NonBacktracking 37.27 ns 0.065 ns 0.99 - NA
IsMatch Main 8 None 70.33 ns 0.339 ns 1.00 - NA
IsMatch PR 8 None 70.20 ns 0.122 ns 1.00 - NA
IsMatch Main 8 Compiled 24.83 ns 1.755 ns 1.00 - NA
IsMatch PR 8 Compiled 27.65 ns 0.120 ns 1.12 - NA
IsMatch Main 8 NonBacktracking 39.91 ns 0.145 ns 1.00 - NA
IsMatch PR 8 NonBacktracking 39.60 ns 0.237 ns 0.99 - NA
IsMatch Main 9 None 71.54 ns 0.096 ns 1.00 - NA
IsMatch PR 9 None 71.33 ns 0.063 ns 1.00 - NA
IsMatch Main 9 Compiled 22.79 ns 0.029 ns 1.00 - NA
IsMatch PR 9 Compiled 22.84 ns 0.055 ns 1.00 - NA
IsMatch Main 9 NonBacktracking 41.38 ns 0.209 ns 1.00 - NA
IsMatch PR 9 NonBacktracking 41.43 ns 0.304 ns 1.00 - NA
IsMatch Main 10 None 71.43 ns 0.135 ns 1.00 - NA
IsMatch PR 10 None 74.91 ns 9.591 ns 1.05 - NA
IsMatch Main 10 Compiled 22.87 ns 0.020 ns 1.00 - NA
IsMatch PR 10 Compiled 23.00 ns 0.266 ns 1.01 - NA
IsMatch Main 10 NonBacktracking 46.70 ns 0.197 ns 1.00 - NA
IsMatch PR 10 NonBacktracking 47.19 ns 1.249 ns 1.01 - NA
IsMatch Main 11 None 56.97 ns 0.057 ns 1.00 - NA
IsMatch PR 11 None 57.04 ns 0.151 ns 1.00 - NA
IsMatch Main 11 Compiled 22.49 ns 0.044 ns 1.00 - NA
IsMatch PR 11 Compiled 22.95 ns 0.452 ns 1.02 - NA
IsMatch Main 11 NonBacktracking 37.10 ns 0.539 ns 1.00 - NA
IsMatch PR 11 NonBacktracking 36.80 ns 0.138 ns 0.99 - NA
IsMatch Main 12 None 63.82 ns 0.048 ns 1.00 - NA
IsMatch PR 12 None 64.94 ns 0.166 ns 1.02 - NA
IsMatch Main 12 Compiled 25.94 ns 0.072 ns 1.00 - NA
IsMatch PR 12 Compiled 25.92 ns 0.022 ns 1.00 - NA
IsMatch Main 12 NonBacktracking 49.07 ns 0.646 ns 1.00 - NA
IsMatch PR 12 NonBacktracking 50.06 ns 0.966 ns 1.02 - NA
IsMatch Main 13 None 63.96 ns 0.573 ns 1.00 - NA
IsMatch PR 13 None 64.02 ns 0.116 ns 1.00 - NA
IsMatch Main 13 Compiled 25.95 ns 0.034 ns 1.00 - NA
IsMatch PR 13 Compiled 25.96 ns 0.061 ns 1.00 - NA
IsMatch Main 13 NonBacktracking 48.82 ns 0.594 ns 1.00 - NA
IsMatch PR 13 NonBacktracking 48.65 ns 0.092 ns 1.00 - NA
System.Text.RegularExpressions.Tests.Perf_Regex_Common
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-TPEJOW : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-HKHXHK : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  PowerPlanMode=  IterationTime=250ms
MaxIterationCount=20  MinIterationCount=15  WarmupCount=1
Method Toolchain Options Mean Error Ratio Allocated Alloc Ratio
Backtracking Main None 805.66 ns 0.867 ns 1.00 248 B 1.00
Backtracking PR None 819.61 ns 2.371 ns 1.02 248 B 1.00
Date_IsNotMatch Main None 195.36 ns 0.207 ns 1.00 - NA
Date_IsNotMatch PR None 195.60 ns 0.093 ns 1.00 - NA
IP_IsNotMatch Main None 333.81 ns 0.332 ns 1.00 - NA
IP_IsNotMatch PR None 333.31 ns 0.334 ns 1.00 - NA
Uri_IsMatch Main None 156.92 ns 0.273 ns 1.00 - NA
Uri_IsMatch PR None 158.11 ns 0.293 ns 1.01 - NA
Uri_IsNotMatch Main None 168.13 ns 0.125 ns 1.00 - NA
Uri_IsNotMatch PR None 167.90 ns 0.153 ns 1.00 - NA
MatchesSet Main None 72,242.33 ns 207.549 ns 1.00 6640 B 1.00
MatchesSet PR None 72,310.68 ns 215.107 ns 1.00 6640 B 1.00
MatchesBoundary Main None 62,789.02 ns 116.943 ns 1.00 6640 B 1.00
MatchesBoundary PR None 62,930.51 ns 82.186 ns 1.00 6640 B 1.00
MatchesWord Main None 732.38 ns 5.884 ns 1.00 1424 B 1.00
MatchesWord PR None 742.96 ns 5.567 ns 1.01 1424 B 1.00
MatchesWords Main None 31,141.14 ns 171.258 ns 1.00 3448 B 1.00
MatchesWords PR None 32,280.84 ns 129.303 ns 1.04 3448 B 1.00
ReplaceWords Main None 31,078.86 ns 73.923 ns 1.00 6848 B 1.00
ReplaceWords PR None 31,561.08 ns 48.673 ns 1.02 6848 B 1.00
SplitWords Main None 30,998.36 ns 56.338 ns 1.00 7432 B 1.00
SplitWords PR None 31,130.06 ns 80.869 ns 1.00 7432 B 1.00
OneNodeBacktracking Main None 559.86 ns 1.345 ns 1.00 - NA
OneNodeBacktracking PR None 558.73 ns 0.518 ns 1.00 - NA
Email_IsMatch Main None 224.21 ns 1.617 ns 1.00 - NA
Email_IsMatch PR None 223.95 ns 1.007 ns 1.00 - NA
Email_IsNotMatch Main None 295.21 ns 5.472 ns 1.00 - NA
Email_IsNotMatch PR None 292.95 ns 2.440 ns 0.99 - NA
Date_IsMatch Main None 88.45 ns 0.066 ns 1.00 - NA
Date_IsMatch PR None 88.24 ns 0.052 ns 1.00 - NA
IP_IsMatch Main None 328.29 ns 0.464 ns 1.00 - NA
IP_IsMatch PR None 329.66 ns 0.590 ns 1.00 - NA
MatchWord Main None 874.33 ns 3.964 ns 1.00 208 B 1.00
MatchWord PR None 873.15 ns 3.921 ns 1.00 208 B 1.00
Ctor Main None 3,440.58 ns 27.213 ns 1.00 6456 B 1.00
Ctor PR None 3,407.58 ns 30.990 ns 0.99 6456 B 1.00
CtorInvoke Main None 3,666.14 ns 68.425 ns 1.00 8520 B 1.00
CtorInvoke PR None 3,514.80 ns 22.877 ns 0.96 8520 B 1.00
Backtracking Main Compiled 67.90 ns 0.225 ns 1.00 248 B 1.00
Backtracking PR Compiled 64.79 ns 0.190 ns 0.95 248 B 1.00
Date_IsNotMatch Main Compiled 68.82 ns 0.138 ns 1.00 - NA
Date_IsNotMatch PR Compiled 69.10 ns 0.182 ns 1.00 - NA
IP_IsNotMatch Main Compiled 85.41 ns 0.090 ns 1.00 - NA
IP_IsNotMatch PR Compiled 85.54 ns 0.187 ns 1.00 - NA
Uri_IsMatch Main Compiled 46.45 ns 0.022 ns 1.00 - NA
Uri_IsMatch PR Compiled 47.53 ns 0.076 ns 1.02 - NA
Uri_IsNotMatch Main Compiled 47.07 ns 0.126 ns 1.00 - NA
Uri_IsNotMatch PR Compiled 46.93 ns 0.076 ns 1.00 - NA
MatchesSet Main Compiled 33,095.22 ns 187.122 ns 1.00 6640 B 1.00
MatchesSet PR Compiled 33,491.23 ns 144.407 ns 1.01 6640 B 1.00
MatchesBoundary Main Compiled 31,454.92 ns 20.229 ns 1.00 6640 B 1.00
MatchesBoundary PR Compiled 31,050.94 ns 56.360 ns 0.99 6640 B 1.00
MatchesWord Main Compiled 566.38 ns 5.084 ns 1.00 1424 B 1.00
MatchesWord PR Compiled 581.83 ns 5.008 ns 1.03 1424 B 1.00
MatchesWords Main Compiled 1,266.82 ns 8.094 ns 1.00 3448 B 1.00
MatchesWords PR Compiled 1,262.06 ns 9.711 ns 1.00 3448 B 1.00
ReplaceWords Main Compiled 1,187.43 ns 23.205 ns 1.00 6848 B 1.00
ReplaceWords PR Compiled 1,245.20 ns 17.209 ns 1.05 6848 B 1.00
SplitWords Main Compiled 1,233.90 ns 22.053 ns 1.00 7432 B 1.00
SplitWords PR Compiled 1,318.55 ns 13.213 ns 1.07 7432 B 1.00
OneNodeBacktracking Main Compiled 70.41 ns 0.351 ns 1.00 - NA
OneNodeBacktracking PR Compiled 70.70 ns 0.381 ns 1.00 - NA
Email_IsMatch Main Compiled 71.43 ns 0.963 ns 1.00 - NA
Email_IsMatch PR Compiled 70.37 ns 0.461 ns 0.99 - NA
Email_IsNotMatch Main Compiled 75.95 ns 0.181 ns 1.00 - NA
Email_IsNotMatch PR Compiled 76.26 ns 1.484 ns 1.00 - NA
Date_IsMatch Main Compiled 35.49 ns 0.089 ns 1.00 - NA
Date_IsMatch PR Compiled 35.56 ns 0.089 ns 1.00 - NA
IP_IsMatch Main Compiled 87.97 ns 0.736 ns 1.00 - NA
IP_IsMatch PR Compiled 87.15 ns 0.502 ns 0.99 - NA
MatchWord Main Compiled 66.48 ns 1.943 ns 1.00 208 B 1.00
MatchWord PR Compiled 66.55 ns 1.943 ns 1.00 208 B 1.00
Ctor Main Compiled 13,901.92 ns 72.202 ns 1.00 21856 B 1.00
Ctor PR Compiled 14,127.17 ns 119.373 ns 1.02 21856 B 1.00
CtorInvoke Main Compiled 225,841.25 ns 863.696 ns 1.00 24628 B 1.00
CtorInvoke PR Compiled 228,729.63 ns 875.022 ns 1.01 24629 B 1.00
Backtracking Main IgnoreCase, Compiled 87.23 ns 0.407 ns 1.00 248 B 1.00
Backtracking PR IgnoreCase, Compiled 86.63 ns 0.357 ns 0.99 248 B 1.00
Date_IsNotMatch Main IgnoreCase, Compiled 68.27 ns 0.033 ns 1.00 - NA
Date_IsNotMatch PR IgnoreCase, Compiled 68.77 ns 0.158 ns 1.01 - NA
IP_IsNotMatch Main IgnoreCase, Compiled 85.55 ns 0.068 ns 1.00 - NA
IP_IsNotMatch PR IgnoreCase, Compiled 90.64 ns 0.050 ns 1.06 - NA
Uri_IsMatch Main IgnoreCase, Compiled 47.30 ns 0.113 ns 1.00 - NA
Uri_IsMatch PR IgnoreCase, Compiled 46.87 ns 0.030 ns 0.99 - NA
Uri_IsNotMatch Main IgnoreCase, Compiled 47.02 ns 0.043 ns 1.00 - NA
Uri_IsNotMatch PR IgnoreCase, Compiled 49.63 ns 0.264 ns 1.06 - NA
MatchesSet Main IgnoreCase, Compiled 33,143.27 ns 148.805 ns 1.00 6640 B 1.00
MatchesSet PR IgnoreCase, Compiled 33,579.56 ns 123.739 ns 1.01 6640 B 1.00
MatchesBoundary Main IgnoreCase, Compiled 31,068.84 ns 15.423 ns 1.00 6640 B 1.00
MatchesBoundary PR IgnoreCase, Compiled 31,263.28 ns 25.229 ns 1.01 6640 B 1.00
MatchesWord Main IgnoreCase, Compiled 592.87 ns 3.629 ns 1.00 1424 B 1.00
MatchesWord PR IgnoreCase, Compiled 584.72 ns 6.517 ns 0.99 1424 B 1.00
MatchesWords Main IgnoreCase, Compiled 1,975.33 ns 8.562 ns 1.00 3448 B 1.00
MatchesWords PR IgnoreCase, Compiled 1,620.42 ns 13.863 ns 0.82 3448 B 1.00
ReplaceWords Main IgnoreCase, Compiled 2,400.85 ns 17.021 ns 1.00 6848 B 1.00
ReplaceWords PR IgnoreCase, Compiled 1,852.07 ns 24.134 ns 0.77 6848 B 1.00
SplitWords Main IgnoreCase, Compiled 1,627.42 ns 15.085 ns 1.00 7432 B 1.00
SplitWords PR IgnoreCase, Compiled 1,592.37 ns 15.579 ns 0.98 7432 B 1.00
OneNodeBacktracking Main IgnoreCase, Compiled 73.14 ns 0.626 ns 1.00 - NA
OneNodeBacktracking PR IgnoreCase, Compiled 73.62 ns 0.526 ns 1.01 - NA
Email_IsMatch Main IgnoreCase, Compiled 73.55 ns 0.220 ns 1.00 - NA
Email_IsMatch PR IgnoreCase, Compiled 74.20 ns 1.776 ns 1.01 - NA
Email_IsNotMatch Main IgnoreCase, Compiled 79.81 ns 0.085 ns 1.00 - NA
Email_IsNotMatch PR IgnoreCase, Compiled 79.80 ns 0.148 ns 1.00 - NA
Date_IsMatch Main IgnoreCase, Compiled 35.54 ns 0.060 ns 1.00 - NA
Date_IsMatch PR IgnoreCase, Compiled 35.57 ns 0.266 ns 1.00 - NA
IP_IsMatch Main IgnoreCase, Compiled 86.43 ns 0.132 ns 1.00 - NA
IP_IsMatch PR IgnoreCase, Compiled 86.37 ns 0.179 ns 1.00 - NA
MatchWord Main IgnoreCase, Compiled 88.40 ns 5.453 ns 1.00 208 B 1.00
MatchWord PR IgnoreCase, Compiled 95.67 ns 11.713 ns 1.09 208 B 1.00
Ctor Main IgnoreCase, Compiled 19,047.27 ns 208.084 ns 1.00 26960 B 1.00
Ctor PR IgnoreCase, Compiled 18,841.11 ns 201.819 ns 0.99 26960 B 1.00
CtorInvoke Main IgnoreCase, Compiled 238,340.72 ns 797.672 ns 1.00 29793 B 1.00
CtorInvoke PR IgnoreCase, Compiled 241,143.25 ns 824.678 ns 1.01 29793 B 1.00
System.Text.RegularExpressions.Tests.Perf_Regex_Cache
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1
Method Toolchain total unique cacheSize Mean Error Ratio Allocated Alloc Ratio
IsMatch Main 40000 7 0 25.926 ms 0.4868 ms 1.00 96960000 B 1.00
IsMatch PR 40000 7 0 28.202 ms 0.3014 ms 1.09 96960000 B 1.00
IsMatch Main 40000 1600 15 64.941 ms 0.4714 ms 1.00 154806826 B 1.00
IsMatch PR 40000 1600 15 64.651 ms 0.4841 ms 1.00 154806826 B 1.00
IsMatch Main 40000 1600 800 46.341 ms 0.3010 ms 1.00 80906638 B 1.00
IsMatch PR 40000 1600 800 46.361 ms 0.3155 ms 1.00 80860554 B 1.00
IsMatch Main 40000 1600 3200 7.527 ms 0.0195 ms 1.00 133219 B 1.00
IsMatch PR 40000 1600 3200 7.578 ms 0.0287 ms 1.01 133219 B 1.00
IsMatch Main 400000 1 15 22.748 ms 0.0433 ms 1.00 233 B 1.00
IsMatch PR 400000 1 15 22.829 ms 0.0617 ms 1.00 233 B 1.00
IsMatch Main 400000 7 15 28.258 ms 0.1122 ms 1.00 1991 B 1.00
IsMatch PR 400000 7 15 28.243 ms 0.0604 ms 1.00 1991 B 1.00
IsMatch_Multithreading Main 40000 7 0 8.563 ms 0.4024 ms 1.00 96961136 B 1.00
IsMatch_Multithreading PR 40000 7 0 8.257 ms 0.2456 ms 0.97 96961136 B 1.00
IsMatch_Multithreading Main 40000 1600 15 23.791 ms 0.7617 ms 1.00 154770083 B 1.00
IsMatch_Multithreading PR 40000 1600 15 23.478 ms 0.7158 ms 0.99 154736687 B 1.00
IsMatch_Multithreading Main 40000 1600 800 22.022 ms 0.5381 ms 1.00 80078581 B 1.00
IsMatch_Multithreading PR 40000 1600 800 21.582 ms 0.4003 ms 0.98 80096684 B 1.00
IsMatch_Multithreading Main 40000 1600 3200 2.967 ms 0.0588 ms 1.00 114739 B 1.00
IsMatch_Multithreading PR 40000 1600 3200 3.025 ms 0.0507 ms 1.02 113253 B 0.99
IsMatch_Multithreading Main 400000 1 15 11.453 ms 0.6532 ms 1.00 117723 B 1.00
IsMatch_Multithreading PR 400000 1 15 11.521 ms 0.5100 ms 1.01 3050022 B 25.91
IsMatch_Multithreading Main 400000 7 15 27.241 ms 0.2006 ms 1.00 62790783 B 1.00
IsMatch_Multithreading PR 400000 7 15 27.553 ms 0.1789 ms 1.01 63842101 B 1.02
BenchmarksGame.RegexRedux_5
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-TPEJOW : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-HKHXHK : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=Default  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=Default
MinIterationCount=15  WarmupCount=1
Method Toolchain options Mean Error Ratio Allocated Alloc Ratio
RegexRedux_5 Main None 19.303 ms 0.2122 ms 1.00 3.21 MB 1.00
RegexRedux_5 PR None 19.304 ms 0.2514 ms 1.00 3.21 MB 1.00
RegexRedux_5 Main Compiled 3.387 ms 0.1394 ms 1.00 3.21 MB 1.00
RegexRedux_5 PR Compiled 3.391 ms 0.0148 ms 1.00 3.21 MB 1.00
BenchmarksGame.RegexRedux_1
BenchmarkDotNet v0.16.0-nightly.20260226.451, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 1 CPU, 8 logical and 4 physical cores
  Job-NRQIIJ : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
  Job-NGSIDY : .NET 11.0.0 (11.0.0-dev, 42.42.42.42424), X64 RyuJIT x86-64-v4
EvaluateOverhead=False  OutlierMode=DontRemove  PowerPlanMode=
IterationTime=250ms  MaxIterationCount=20  MemoryRandomization=True
MinIterationCount=15  WarmupCount=1  Gen0=916.6667
Gen1=916.6667  Gen2=916.6667
Method Toolchain Mean Error Ratio Allocated Alloc Ratio
RegexRedux_1 Main 20.43 ms 0.130 ms 1.00 3.45 MB 1.00
RegexRedux_1 PR 20.48 ms 0.216 ms 1.00 3.44 MB 1.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment