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 #461

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

Comments

@MihuBot
Copy link
Owner

MihuBot commented Jun 20, 2024

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

System.Text.RegularExpressions.Tests.Perf_Regex_Industry_RustLang_Sherlock
BenchmarkDotNet v0.13.13-nightly.20240311.145, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
Intel Xeon Platinum 8370C CPU 2.80GHz, 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 .* 692,533.28 ns 1,231.280 ns 1.00 2 B 1.00
Count PR .* 692,374.37 ns 862.126 ns 1.00 2 B 1.00
Count Main (?i)Holmes 72,497.69 ns 719.977 ns 1.00 - NA
Count PR (?i)Holmes 72,227.85 ns 276.730 ns 1.00 - NA
Count Main (?i)Sher[a-z]+|Hol[a-z]+ 96,650.59 ns 4,640.809 ns 1.01 - NA
Count PR (?i)Sher[a-z]+|Hol[a-z]+ 97,503.09 ns 4,159.144 ns 1.01 - NA
Count Main (?i)Sherlock 63,240.49 ns 311.381 ns 1.00 - NA
Count PR (?i)Sherlock 63,147.51 ns 274.260 ns 1.00 - NA
Count Main (?i)Sherlock Holmes 63,332.83 ns 394.052 ns 1.00 - NA
Count PR (?i)Sherlock Holmes 63,477.59 ns 534.546 ns 1.00 - NA
Count Main (?i)Sherlock|Holmes|Watson 96,444.68 ns 3,934.732 ns 1.00 - NA
Count PR (?i)Sherlock|Holmes|Watson 100,066.02 ns 3,078.630 ns 1.04 - NA
Count Main (?i)Sherlock|(...)er|John|Baker [49] 291,404.22 ns 5,115.307 ns 1.00 2 B 1.00
Count PR (?i)Sherlock|(...)er|John|Baker [49] 291,730.90 ns 7,666.914 ns 1.00 2 B 1.00
Count Main (?i)the 396,650.24 ns 1,806.880 ns 1.00 1 B 1.00
Count PR (?i)the 382,215.74 ns 4,264.569 ns 0.96 1 B 1.00
Count Main (?m)^Sherlock(...)rlock Holmes$ [37] 82,680.99 ns 3,682.332 ns 1.00 - NA
Count PR (?m)^Sherlock(...)rlock Holmes$ [37] 83,141.80 ns 3,561.966 ns 1.01 - NA
Count Main (?s).* 51.63 ns 0.174 ns 1.00 - NA
Count PR (?s).* 51.37 ns 0.283 ns 0.99 - NA
Count Main [^\\n]* 695,488.60 ns 776.886 ns 1.00 2 B 1.00
Count PR [^\\n]* 708,878.73 ns 6,606.508 ns 1.02 2 B 1.00
Count Main [a-q][^u-z]{13}x 33,627.87 ns 1,424.345 ns 1.00 - NA
Count PR [a-q][^u-z]{13}x 32,957.19 ns 1,313.173 ns 0.98 - NA
Count Main [a-zA-Z]+ing 4,629,750.62 ns 17,151.286 ns 1.00 21 B 1.00
Count PR [a-zA-Z]+ing 4,688,676.30 ns 25,796.888 ns 1.01 19 B 0.90
Count Main \b\w+n\b 9,918,077.20 ns 11,816.328 ns 1.00 44 B 1.00
Count PR \b\w+n\b 9,917,506.06 ns 6,130.825 ns 1.00 44 B 1.00
Count Main \p{L} 10,563,613.08 ns 20,487.995 ns 1.00 35 B 1.00
Count PR \p{L} 10,551,839.98 ns 13,648.215 ns 1.00 35 B 1.00
Count Main \p{Ll} 10,392,510.30 ns 244,924.640 ns 1.00 35 B 1.00
Count PR \p{Ll} 10,204,254.20 ns 42,068.366 ns 0.98 35 B 1.00
Count Main \p{Lu} 514,551.39 ns 2,906.822 ns 1.00 2 B 1.00
Count PR \p{Lu} 514,689.01 ns 2,663.098 ns 1.00 2 B 1.00
Count Main \s[a-zA-Z]{0,12}ing\s 5,403,742.68 ns 5,486.032 ns 1.00 22 B 1.00
Count PR \s[a-zA-Z]{0,12}ing\s 5,576,309.94 ns 116,686.640 ns 1.03 24 B 1.09
Count Main \w+ 5,476,090.65 ns 117,519.578 ns 1.00 21 B 1.00
Count PR \w+ 5,191,473.22 ns 17,403.844 ns 0.95 21 B 1.00
Count Main \w+\s+Holmes 3,978,231.57 ns 9,261.486 ns 1.00 22 B 1.00
Count PR \w+\s+Holmes 3,984,368.86 ns 11,449.053 ns 1.00 22 B 1.00
Count Main \w+\s+Holmes\s+\w+ 4,162,472.79 ns 6,357.565 ns 1.00 23 B 1.00
Count PR \w+\s+Holmes\s+\w+ 4,158,964.00 ns 3,013.698 ns 1.00 23 B 1.00
Count Main aei 59,808.19 ns 537.078 ns 1.00 - NA
Count PR aei 59,988.75 ns 560.298 ns 1.00 - NA
Count Main aqj 59,680.51 ns 754.259 ns 1.00 - NA
Count PR aqj 60,212.43 ns 210.739 ns 1.01 - NA
Count Main Holmes 69,292.89 ns 497.674 ns 1.00 - NA
Count PR Holmes 69,223.37 ns 573.199 ns 1.00 - NA
Count Main Holmes.{0,25}(...).{0,25}Holmes [39] 61,041.39 ns 963.565 ns 1.00 - NA
Count PR Holmes.{0,25}(...).{0,25}Holmes [39] 59,864.24 ns 319.881 ns 0.98 - NA
Count Main Sher[a-z]+|Hol[a-z]+ 66,007.66 ns 751.640 ns 1.00 - NA
Count PR Sher[a-z]+|Hol[a-z]+ 65,052.21 ns 1,894.259 ns 0.99 - NA
Count Main Sherlock 81,734.31 ns 3,992.175 ns 1.01 - NA
Count PR Sherlock 81,896.88 ns 4,006.424 ns 1.01 - NA
Count Main Sherlock Holmes 84,522.28 ns 4,613.308 ns 1.01 - NA
Count PR Sherlock Holmes 82,675.36 ns 3,821.356 ns 0.98 - NA
Count Main Sherlock\s+Holmes 83,883.14 ns 3,411.917 ns 1.00 - NA
Count PR Sherlock\s+Holmes 83,139.18 ns 3,738.489 ns 1.00 - NA
Count Main Sherlock|Holmes 58,678.57 ns 1,076.534 ns 1.00 - NA
Count PR Sherlock|Holmes 57,108.91 ns 1,160.617 ns 0.97 - NA
Count Main Sherlock|Holmes|Watson 83,040.27 ns 3,546.565 ns 1.00 - NA
Count PR Sherlock|Holmes|Watson 77,967.69 ns 1,444.432 ns 0.94 - NA
Count Main Sherlock|Holm(...)er|John|Baker [45] 204,647.60 ns 4,715.119 ns 1.00 1 B 1.00
Count PR Sherlock|Holm(...)er|John|Baker [45] 211,882.07 ns 862.599 ns 1.04 1 B 1.00
Count Main Sherlock|Street 34,642.47 ns 1,378.913 ns 1.00 - NA
Count PR Sherlock|Street 36,492.09 ns 1,948.772 ns 1.06 - NA
Count Main the 306,191.93 ns 1,411.413 ns 1.00 1 B 1.00
Count PR the 319,233.42 ns 7,226.537 ns 1.04 1 B 1.00
Count Main The 74,672.19 ns 584.062 ns 1.00 - NA
Count PR The 75,103.95 ns 548.132 ns 1.01 - NA
Count Main the\s+\w+ 447,402.14 ns 852.682 ns 1.00 1 B 1.00
Count PR the\s+\w+ 447,951.66 ns 1,320.894 ns 1.00 1 B 1.00
Count Main zqj 59,604.39 ns 700.948 ns 1.00 - NA
Count PR zqj 59,817.32 ns 544.616 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