Skip to content

Comments

add boolean parsing variations#2240

Closed
LoopedBard3 wants to merge 2 commits intodotnet:mainfrom
danmoseley:bool.parse
Closed

add boolean parsing variations#2240
LoopedBard3 wants to merge 2 commits intodotnet:mainfrom
danmoseley:bool.parse

Conversation

@LoopedBard3
Copy link
Member

Copying from #2234 so queue fixes are included
What I get on my machine, without dotnet/runtime#64782

Method value Mean Error StdDev Median Min Max Allocated
TryParse true 9.877 ns 0.3212 ns 0.3700 ns 9.807 ns 9.161 ns 10.60 ns -
TryParse false 11.404 ns 0.4224 ns 0.4865 ns 11.344 ns 10.722 ns 12.22 ns -
TryParse fAlSe 11.179 ns 0.2641 ns 0.2936 ns 11.167 ns 10.733 ns 11.84 ns -
TryParse TrUe 12.215 ns 1.7123 ns 1.9032 ns 11.467 ns 10.127 ns 15.41 ns -
TryParse tru 23.106 ns 0.6177 ns 0.6866 ns 22.909 ns 22.116 ns 24.61 ns -
TryParse tRuu 25.520 ns 0.5347 ns 0.5722 ns 25.542 ns 24.739 ns 26.64 ns -
TryParse falss 26.871 ns 0.5399 ns 0.5302 ns 27.117 ns 25.552 ns 27.44 ns -
TryParse bogus 34.17 ns 6.021 ns 6.934 ns 30.54 ns 27.177 ns 48.57 ns -
Parse true 16.222 ns 0.7374 ns 0.8492 ns 16.208 ns 14.751 ns 18.18 ns -
Parse false 17.495 ns 1.1390 ns 1.3117 ns 16.919 ns 16.059 ns 20.40 ns -

@LoopedBard3 LoopedBard3 closed this Feb 4, 2022
@LoopedBard3 LoopedBard3 removed the request for review from danmoseley February 4, 2022 23:14
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.

2 participants