Uh oh!
There was an error while loading. Please reload this page.
Enable SymbolicRegexNode.IsNullableFor fast path to inline - #61605
Merged
Conversation
stephentoub
commented
Nov 15, 2021
Member
| Method | Toolchain | Mean | Error | StdDev | Ratio | RatioSD | Allocated |
|---|---|---|---|---|---|---|---|
| IsMatch | \main\corerun.exe | 10.639 ms | 0.0453 ms | 0.0402 ms | 1.00 | 0.00 | - |
| IsMatch | \pr\corerun.exe | 9.190 ms | 0.1800 ms | 0.2143 ms | 0.87 | 0.02 | - |
ghost
commented
Nov 15, 2021
Tagging subscribers to this area: @eerhardt, @dotnet/area-system-text-regularexpressions Issue Details
usingBenchmarkDotNet.Attributes;usingBenchmarkDotNet.Diagnosers;usingBenchmarkDotNet.Running;usingSystem.Linq;usingSystem.Text.RegularExpressions;[MemoryDiagnoser]publicpartialclassProgram{publicstaticvoidMain(string[]args){BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);}privateRegex_regex=newRegex("[a-q][^u-z]{13}x",RegexOptions.NonBacktracking);privatestring_input=string.Concat(Enumerable.Repeat("abcdefghijklz",100_000));[Benchmark]publicboolIsMatch()=>_regex.IsMatch(_input);}
|
This was referenced Nov 29, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.