Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Regressions in System.Text.RegularExpressions.Tests.Perf_Regex_Common #59813

Closed

Description

@performanceautofiler

Run Information

Architecture arm64
OS Windows 10.0.19041
Baseline a526f96d319bb46c5045a18d107b4d704335cf7b
Compare 87a22d66ff6ff442aa48ecb40b397ee9d1930ad5
Diff Diff

Regressions in System.Text.RegularExpressions.Tests.Perf_Regex_Common

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
ReplaceWords - Duration of single invocation 87.69 μs 99.33 μs 1.13 0.01 False

graph
Test Report

Repro

git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'System.Text.RegularExpressions.Tests.Perf_Regex_Common*'
Details

Payloads

Baseline
Compare

Histogram

System.Text.RegularExpressions.Tests.Perf_Regex_Common.ReplaceWords(Options: None)


Docs

Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository

Activity

  1. changed the title [-][Perf] Changes at 9/28/2021 12:45:36 PM[/-] [+]Regressions in System.Text.RegularExpressions.Tests.Perf_Regex_Common[/+] on Sep 30, 2021
  2. ghost added
    untriaged
    on Sep 30, 2021
  3. kunalspathak commented on Sep 30, 2021

    @kunalspathak
    Contributor

    Introduced in #59429

  4. added
    tenet-performance
    tenet-performance-benchmarks
    on Sep 30, 2021
  5. kunalspathak commented on Sep 30, 2021

    @kunalspathak
    Contributor
  6. sandreenko commented on Sep 30, 2021

    @sandreenko
    Contributor

    interesting, I will take a look this week.

  7. sandreenko commented on Oct 4, 2021

    @sandreenko
    Contributor

    is there a way to get bench asm diffs with altjit? the regression is on arm64 windows that I don't have access to. The only known regression there from my change was like this:

    -Found 2050 lvMustInit int-sized stack slots, frame offsets -36 through -16424
    +Found 2048 lvMustInit int-sized stack slots, frame offsets -8232 through -16424
    
    -IN0056: 00002C      add     x9, fp, #100
    +IN0056: 00002C      mov     x9, #0xd1ffab1e
    +IN0057: 000030      add     x9, fp, x9

    but I don't think it could cause such regression on this test.
    Do we have improvements from this change?

  8. added
    needs-further-triage
    and removed
    untriaged
    on Oct 4, 2021
  9. kunalspathak commented on Oct 5, 2021

    @kunalspathak
    Contributor

    I got asm diff for following methods and didn't find any asm diff using altjit

    • System.Text.RegularExpressions.Regex:Run(System.String,int,byref,System.Text.RegularExpressions.MatchCallback1[ValueTuple5],bool):this
    • System.Text.RegularExpressions.RegexRunner:Scan(System.Text.RegularExpressions.Regex,System.String,int,byref,System.Text.RegularExpressions.MatchCallback1[ValueTuple5],bool,System.TimeSpan):this
    • System.Text.RegularExpressions.RegexReplacement:Replace(System.Text.RegularExpressions.Regex,System.String,int,int):System.String:this

    Currently, this is how the historic graph looks like:

    https://pvscmdupload.blob.core.windows.net/reports/allTestHistory/refs/heads/main_arm64_Windows%2010.0.19041/System.Text.RegularExpressions.Tests.Perf_Regex_Common.ReplaceWords(Options%3a%20None).html

    image

    The regression was definitely introduced in #59429, but then I checked what changes made the improvements and they were one of these 8e9ab9f...918aaec. @stephentoub touched some Regex portion and that might have erased the regression. @stephentoub , can you confirm that theory? If that is true, it means the regression is still there, it just got hidden from the improvements.

  10. stephentoub commented on Oct 5, 2021

    @stephentoub
    Member

    @stephentoub touched some Regex portion and that might have erased the regression. @stephentoub , can you confirm that theory

    Hmm. I don't think those changes should have impacted this ReplaceWords test at all (I'd have expected a small improvement in a few of the other regex tests, specifically the ones that search for a single word, but not in this test that searches for multiple words).

  11. stephentoub commented on Oct 5, 2021

    @stephentoub
    Member

    historical data looks very strange for this benchmark

    That's a huge bimodal distribution?

  12. kunalspathak commented on Oct 5, 2021

    @kunalspathak
    Contributor

    Hmm. I don't think those changes should have impacted this ReplaceWords test at all

    If that is the case and given there is asm diff in the benchmark, we can safely categorize it as noise.

  13. ghost locked as resolved and limited conversation to collaborators on Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm64area-System.Text.RegularExpressionsneeds-further-triageos-windowstenet-performancetenet-performance-benchmarks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions