-
Notifications
You must be signed in to change notification settings - Fork 0
TryParseEx() benchmark
Michael Lidgren edited this page Jan 27, 2021
·
1 revision
See enums used here. Code to produce this benchmark is here.
Method | Mean | Error | StdDev | Ratio |
---|---|---|---|---|
Core_SimpleEnum_TryParse | 56.108 ns | 0.2111 ns | 0.1974 ns | 1.00 |
EnumsNET_SimpleEnum_TryParse | 30.361 ns | 0.2279 ns | 0.1780 ns | 0.54 |
FastEnum_SimpleEnum_TryParse | 15.750 ns | 0.0678 ns | 0.0634 ns | 0.28 |
Lidgren_SimpleEnum_TryParse | 5.760 ns | 0.0906 ns | 0.0707 ns | 0.10 |
Core_OffsetDiscontinuousEnum_TryParse | 57.243 ns | 0.2103 ns | 0.1967 ns | 1.00 |
EnumsNET_OffsetDiscontinuousEnum_TryParse | 29.679 ns | 0.1522 ns | 0.1271 ns | 0.52 |
FastEnum_OffsetDiscontinuousEnum_TryParse | 16.470 ns | 0.0506 ns | 0.0473 ns | 0.29 |
Lidgren_OffsetDiscontinuousEnum_TryParse | 6.642 ns | 0.0224 ns | 0.0199 ns | 0.12 |
Core_FlagsEnum_Single_TryParse | 60.357 ns | 0.3263 ns | 0.3052 ns | 1.00 |
EnumsNET_FlagsEnum_Single_TryParse | 62.593 ns | 0.1307 ns | 0.1223 ns | 1.04 |
FastEnum_FlagsEnum_Single_TryParse | 16.264 ns | 0.0542 ns | 0.0507 ns | 0.27 |
Lidgren_FlagsEnum_Single_TryParse | 15.616 ns | 0.0527 ns | 0.0493 ns | 0.26 |
Core_FlagsEnum_Multi_TryParse | 103.251 ns | 0.3947 ns | 0.3296 ns | 1.00 |
EnumsNET_FlagsEnum_Multi_TryParse | 151.298 ns | 0.5723 ns | 0.5073 ns | 1.47 |
FastEnum_FlagsEnum_Multi_TryParse | N/A | N/A | N/A | N/A |
Lidgren_FlagsEnum_Multi_TryParse | 44.907 ns | 0.1901 ns | 0.1778 ns | 0.43 |