Skip to content

.net 7 cycles Performance slow #78089

Description

@quan0zhou

Description

image

publicclassBenchmarkSum{privateJsonObject[]_jsonObjs;[GlobalSetup]publicvoidSetup(){_jsonObjs=newJsonObject[100000];}[Benchmark]publicvoidSum(){for(inti=0;i<100000;i++){_jsonObjs[i]=newJsonObject(){["aaa"]=1,["bbbb"]=2,["cccc"]=newJsonArray(){newJsonObject(){["aaaa"]="aaaaa",["ffffff"]="ffffffffffffff"}}};}}}

Configuration

Regression?

Data

Analysis

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions