Skip to content

Conversation

@SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented Nov 14, 2025

Unexpectedly FrozenDictionary is slower

The Benchmark (https://github.com/servicetitan/playground/blob/master/Benchmarks/TypeDictionary/TypeDictionary.cs ):

Method Mean Error StdDev Median
ResolveByReferenceEquals 42.76 ns 0.948 ns 2.579 ns 42.47 ns
Dictionary 33.75 ns 0.948 ns 2.531 ns 32.63 ns
FrozenDictionary 59.09 ns 1.174 ns 2.967 ns 58.82 ns

@SergeiPavlov SergeiPavlov merged commit 8f93eec into master-servicetitan Nov 17, 2025
37 checks passed
@SergeiPavlov SergeiPavlov deleted the ResolveTypeAccessor branch November 17, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants