Skip to content

mantzas/DotNetBenchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotNetBenchmarks

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

File Logging Benchmark Results

The following benchmark tries to evaluate various logging frameworks when logging to a file.

File Logging Results

DateTime ToString Benchmarks

The following benchmark tries to evaluate various ToString methods on a DateTime.

DateTime ToString Results

For vs ForEach Benchmarks

The following benchmark tries to evaluate the cost of for vs foreach loops.

For vs Foreach Results

String Concatenation Benchmarks

The following benchmark tries to evaluate various methods of string concatenation.

String ConcatenationForeach Results

Throw vs Not Throw Benchmarks

The following benchmark tries to evaluate the cost of throwing exceptions.

Throw vs Not Throw Results

IEnumerable vs ToArray and ToList Conversion Benchmark

The following benchmark tries to evaluate the cost of using IEnumerable Linq vs ToArray or ToList conversions.

IEnumerable vs ToArray and ToList Conversion Results

Xml Deserialize Vs Xml Reader Benchmark

The following benchmark tries to evaluate the cost deserializing with XmlSerializer vs XmlReader.

Xml Deserialize Vs Xml Reader Benchmark Results

Releases

No releases published

Packages

No packages published