Skip to content

[Perf -16%] System.Collections.CopyTo<String> (6) #37814

@DrewScoggins

Description

@DrewScoggins

Run Information

Architecture x64
OS Windows 10.0.18362
Changes diff

Regressions in System.Collections.CopyTo

Benchmark Baseline Test Test/Base Modality Baseline Outlier
Span 593.19 ns 644.50 ns 1.09 False
Memory 584.93 ns 641.29 ns 1.10 False
Array 493.59 ns 592.57 ns 1.20 False
ReadOnlySpan 563.26 ns 628.13 ns 1.12 False
ReadOnlyMemory 595.64 ns 657.34 ns 1.10 False
List 487.56 ns 650.31 ns 1.33 False

graph
graph
graph
graph
graph
Historical Data in Reporting System

Repro

git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f netcoreapp5.0 --filter 'System.Collections.CopyTo<String>*';
Details

Histogram

System.Collections.CopyTo.Span(Size: 2048)

[524.780 ; 546.348) | @@@
[546.348 ; 573.011) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[573.011 ; 597.536) | @@@@@@
[597.536 ; 627.739) | @
[627.739 ; 654.402) | @@@@@@@@@@@@@@@@@@

System.Collections.CopyTo.Memory(Size: 2048)

[565.045 ; 589.110) | @@@@@@@@@@@@@@@@@@@@
[589.110 ; 614.506) | @@@@@@@@@@@@@@
[614.506 ; 641.785) | @@@@@@@@@
[641.785 ; 677.056) | @@@@@@@@@@@@@@@@

System.Collections.CopyTo.Array(Size: 2048)

[482.924 ; 507.846) | @@@@@@
[507.846 ; 529.187) | @@@@@@@@@@@@@@@@@@@@@@
[529.187 ; 557.054) | @@@@@@@@@@@
[557.054 ; 579.833) | @@@@@@@
[579.833 ; 601.175) | @@@@@@@@@@@@@

System.Collections.CopyTo.ReadOnlySpan(Size: 2048)

[509.340 ; 528.944) | @
[528.944 ; 558.954) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[558.954 ; 591.488) | @@@@@
[591.488 ; 619.556) | @
[619.556 ; 649.566) | @@@@@@@@@@@@@@@@@@

System.Collections.CopyTo.ReadOnlyMemory(Size: 2048)

[522.769 ; 539.054) | @
[539.054 ; 569.696) | @@@@@@@@@@@@@@@@@@@@@@@@@
[569.696 ; 598.854) | @@@@@@@@@@@@@
[598.854 ; 634.010) | @@
[634.010 ; 664.652) | @@@@@@@@@@@@@@@@@
[664.652 ; 686.400) | @

System.Collections.CopyTo.List(Size: 2048)

[463.079 ; 493.989) | @@
[493.989 ; 537.133) | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[537.133 ; 560.837) | @
[560.837 ; 603.982) | 
[603.982 ; 626.781) | 
[626.781 ; 669.926) | @@@@@@@@@@@@@@@@@@@

Docs

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions