-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: default registered DataProtection works slower on linux compared to windows #59287
Comments
I would suggest some changes on the benchmark.
|
Also, to prevent dead code elimination, return the encrypted/decrypted value instead of |
thanks for the suggestions, @sebastienros !
Linux:
Windows:
|
Here are the traces for the first run (unchanged benchmark code) |
I ran the sample benchmark, where I get the
DataProtector
viaIServiceProvider
and ran multipleProtect()
andUnprotect()
on sample string:The results are showing a big difference on windows against linux machines (results below).
I was launching benchmarks using crank config and perf machines. I.e.
crank --config https://raw.githubusercontent.com/DeagleGross/Baraholka/refs/heads/main/Benchmarks/Benchmarks/crank/data-protector.yml --scenario dataprotector --profile aspnet-perf-lin --application.framework net10.0
Frameworks infra:
Machine:
Benchmark run:
Linux:
Windows:
The text was updated successfully, but these errors were encountered: