Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Benchmark X64] [MihaZupan] Add SearchValues<char> implementation for two sets of 128 chars #465

Open
MihuBot opened this issue Jun 22, 2024 · 0 comments

Comments

@MihuBot
Copy link
Owner

MihuBot commented Jun 22, 2024

Job completed in 1 hour 5 minutes.
dotnet/runtime#103216
Using arguments: benchmark RustLang_Sherlock https://github.com/MihaZupan/performance/tree/compiled-regex-only -medium

System.Text.RegularExpressions.Tests.Perf_Regex_Industry_RustLang_Sherlock
BenchmarkDotNet v0.13.13-nightly.20240311.145, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 9V74, 1 CPU, 8 logical and 4 physical cores
MediumRun : .NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Job=MediumRun  OutlierMode=DontRemove  IterationCount=15
LaunchCount=2  MemoryRandomization=True  WarmupCount=10
Method Toolchain Pattern Mean Error Ratio Allocated Alloc Ratio
Count Main .* 577,117.72 ns 1,898.483 ns 1.00 2 B 1.00
Count PR .* 609,940.38 ns 5,541.168 ns 1.06 2 B 1.00
Count Main (?i)Holmes 53,669.80 ns 163.206 ns 1.00 - NA
Count PR (?i)Holmes 53,751.77 ns 95.378 ns 1.00 - NA
Count Main (?i)Sher[a-z]+|Hol[a-z]+ 96,797.28 ns 7,445.773 ns 1.01 - NA
Count PR (?i)Sher[a-z]+|Hol[a-z]+ 101,675.49 ns 7,778.427 ns 1.06 - NA
Count Main (?i)Sherlock 45,540.09 ns 158.021 ns 1.00 - NA
Count PR (?i)Sherlock 45,699.65 ns 198.254 ns 1.00 - NA
Count Main (?i)Sherlock Holmes 45,299.62 ns 140.891 ns 1.00 - NA
Count PR (?i)Sherlock Holmes 45,322.99 ns 60.249 ns 1.00 - NA
Count Main (?i)Sherlock|Holmes|Watson 98,222.98 ns 9,160.202 ns 1.02 - NA
Count PR (?i)Sherlock|Holmes|Watson 98,387.61 ns 9,077.154 ns 1.02 - NA
Count Main (?i)Sherlock|(...)er|John|Baker [49] 210,972.18 ns 25,319.086 ns 1.03 1 B 1.00
Count PR (?i)Sherlock|(...)er|John|Baker [49] 216,838.46 ns 27,873.222 ns 1.06 1 B 1.00
Count Main (?i)the 249,601.71 ns 10,074.303 ns 1.00 1 B 1.00
Count PR (?i)the 245,957.03 ns 10,337.071 ns 0.99 1 B 1.00
Count Main (?m)^Sherlock(...)rlock Holmes$ [37] 58,240.97 ns 2,237.819 ns 1.00 - NA
Count PR (?m)^Sherlock(...)rlock Holmes$ [37] 59,147.93 ns 2,749.661 ns 1.02 - NA
Count Main (?s).* 39.26 ns 0.088 ns 1.00 - NA
Count PR (?s).* 41.27 ns 1.728 ns 1.05 - NA
Count Main [^\\n]* 576,131.95 ns 2,377.308 ns 1.00 2 B 1.00
Count PR [^\\n]* 577,114.20 ns 4,299.926 ns 1.00 2 B 1.00
Count Main [a-q][^u-z]{13}x 23,158.57 ns 113.019 ns 1.00 - NA
Count PR [a-q][^u-z]{13}x 23,147.72 ns 90.268 ns 1.00 - NA
Count Main [a-zA-Z]+ing 4,112,765.60 ns 6,996.218 ns 1.00 19 B 1.00
Count PR [a-zA-Z]+ing 4,195,122.65 ns 50,241.289 ns 1.02 21 B 1.11
Count Main \b\w+n\b 8,324,707.71 ns 18,654.897 ns 1.00 44 B 1.00
Count PR \b\w+n\b 8,419,875.57 ns 67,893.821 ns 1.01 44 B 1.00
Count Main \p{L} 10,252,616.17 ns 258,692.197 ns 1.00 35 B 1.00
Count PR \p{L} 10,178,460.27 ns 120,522.988 ns 0.99 35 B 1.00
Count Main \p{Ll} 10,218,675.98 ns 78,494.108 ns 1.00 35 B 1.00
Count PR \p{Ll} 11,001,606.18 ns 501,912.621 ns 1.08 35 B 1.00
Count Main \p{Lu} 355,667.38 ns 7,908.522 ns 1.00 1 B 1.00
Count PR \p{Lu} 348,108.98 ns 3,458.353 ns 0.98 1 B 1.00
Count Main \s[a-zA-Z]{0,12}ing\s 4,387,091.94 ns 11,384.876 ns 1.00 24 B 1.00
Count PR \s[a-zA-Z]{0,12}ing\s 4,404,995.88 ns 9,088.263 ns 1.00 24 B 1.00
Count Main \w+ 4,712,257.79 ns 27,825.642 ns 1.00 18 B 1.00
Count PR \w+ 4,671,552.17 ns 7,259.567 ns 0.99 21 B 1.17
Count Main \w+\s+Holmes 3,340,654.11 ns 10,688.067 ns 1.00 11 B 1.00
Count PR \w+\s+Holmes 3,355,149.72 ns 15,672.577 ns 1.00 10 B 0.91
Count Main \w+\s+Holmes\s+\w+ 3,609,649.22 ns 65,235.529 ns 1.00 10 B 1.00
Count PR \w+\s+Holmes\s+\w+ 3,502,413.34 ns 60,104.536 ns 0.97 12 B 1.20
Count Main aei 38,764.39 ns 528.311 ns 1.00 - NA
Count PR aei 38,671.05 ns 532.363 ns 1.00 - NA
Count Main aqj 38,552.12 ns 579.654 ns 1.00 - NA
Count PR aqj 38,708.25 ns 516.758 ns 1.00 - NA
Count Main Holmes 50,202.09 ns 78.982 ns 1.00 - NA
Count PR Holmes 50,229.34 ns 115.917 ns 1.00 - NA
Count Main Holmes.{0,25}(...).{0,25}Holmes [39] 44,351.33 ns 90.615 ns 1.00 - NA
Count PR Holmes.{0,25}(...).{0,25}Holmes [39] 44,416.66 ns 119.101 ns 1.00 - NA
Count Main Sher[a-z]+|Hol[a-z]+ 48,711.02 ns 113.935 ns 1.00 - NA
Count PR Sher[a-z]+|Hol[a-z]+ 48,852.79 ns 227.029 ns 1.00 - NA
Count Main Sherlock 58,662.58 ns 2,239.132 ns 1.00 - NA
Count PR Sherlock 59,492.49 ns 2,839.858 ns 1.02 - NA
Count Main Sherlock Holmes 59,536.37 ns 2,887.051 ns 1.01 - NA
Count PR Sherlock Holmes 59,734.87 ns 2,760.671 ns 1.01 - NA
Count Main Sherlock\s+Holmes 59,934.57 ns 2,381.314 ns 1.00 - NA
Count PR Sherlock\s+Holmes 60,715.04 ns 3,024.286 ns 1.02 - NA
Count Main Sherlock|Holmes 44,782.94 ns 106.657 ns 1.00 - NA
Count PR Sherlock|Holmes 44,866.33 ns 114.894 ns 1.00 - NA
Count Main Sherlock|Holmes|Watson 58,630.95 ns 77.246 ns 1.00 - NA
Count PR Sherlock|Holmes|Watson 59,046.70 ns 110.269 ns 1.01 - NA
Count Main Sherlock|Holm(...)er|John|Baker [45] 109,855.32 ns 133.155 ns 1.00 - NA
Count PR Sherlock|Holm(...)er|John|Baker [45] 109,887.13 ns 89.847 ns 1.00 - NA
Count Main Sherlock|Street 25,047.25 ns 62.195 ns 1.00 - NA
Count PR Sherlock|Street 25,004.97 ns 85.354 ns 1.00 - NA
Count Main the 179,288.74 ns 632.033 ns 1.00 1 B 1.00
Count PR the 179,042.42 ns 643.054 ns 1.00 1 B 1.00
Count Main The 54,675.24 ns 84.398 ns 1.00 - NA
Count PR The 54,504.36 ns 156.081 ns 1.00 - NA
Count Main the\s+\w+ 282,854.54 ns 12,723.264 ns 1.00 1 B 1.00
Count PR the\s+\w+ 288,927.85 ns 11,924.621 ns 1.03 1 B 1.00
Count Main zqj 38,776.08 ns 523.611 ns 1.00 - NA
Count PR zqj 38,694.38 ns 541.346 ns 1.00 - NA

Artifacts:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant