Skip to content

Getting Environment Variables is few times slower on Linux #866

@adamsitnik

Description

@adamsitnik
Slower Lin/Win Win Median (ns) Lin Median (ns) Modality
System.Tests.Perf_Environment.ExpandEnvironmentVariables 4.06 155.25 630.15
System.Tests.Perf_Environment.GetEnvironmentVariable 3.94 139.77 550.89
System.Tests.Perf_Environment.GetEnvironmentVariables 1.56 15955.73 24816.14 several?

How to run the benchmarks:

git clone https://github.com/dotnet/performance.git
python3 ./performance/scripts/benchmarks_ci.py -f netcoreapp5.0 --filter 'Perf_Environment'

Recommended profilers are PerfCollect and VTune.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions