These are various benchmarks in order to see the performance impact.
The following things hold true for these benchmarks
- These benchmark are not conducted in order to make certain libraries look good or bad
- Please create a issue or better make a PR if you think that the benchmark methodology is wrong or the setup is wrong
- Do not take the results as granted and conduct your own benchmarks to see if in the context of your application the results differ
The following benchmark tries to evaluate various logging frameworks when logging to a file.
The following benchmark tries to evaluate various ToString methods on a DateTime.
The following benchmark tries to evaluate the cost of for vs foreach loops.
The following benchmark tries to evaluate various methods of string concatenation.
String ConcatenationForeach Results
The following benchmark tries to evaluate the cost of throwing exceptions.
The following benchmark tries to evaluate the cost of using IEnumerable Linq vs ToArray or ToList conversions.
IEnumerable vs ToArray and ToList Conversion Results
The following benchmark tries to evaluate the cost deserializing with XmlSerializer vs XmlReader.