You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a synthetic benchmark to test the perf of the failed case of Lookup(), that generates a C++ exception (impl below hresult_out_of_bounds()), and it reports the following when compared to the OS implementation of ValueSet. Lookup is called in TryLookup to simplify usage.
CppWinRT Map
TryLookup fails
100000 iterations, 2021ms, 0ms per iteration
TryLookup succeeds
100000 iterations, 5ms, 0ms per iteration
ValueSet
TryLookup fails
100000 iterations, 2ms, 0ms per iteration
TryLookup succeeds
100000 iterations, 3ms, 0ms per iteration