Skip to content

This is a repo to show benchmarks results over dotnet features.

Notifications You must be signed in to change notification settings

joao2391/DotNetBenchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

DotNet.Benchmarks

DotNet.Benchmarks is a repo to show benchmarks over dotnet features.

Benchmarks

DataStructs

Every method printed contains a for loop that iterates 1000 times.

DataStructs benchmarks result


Interface

Every method printed contains a sum and returns its result.

Interface benchmarks result


Loops

Every method printed contains a for loop that iterates 1000 times.

For vs Foreach

For vs Foreach benchmarks result

While vs For vs DoWhile

While vs For vs DoWhile benchmarks result


String

All benchmarks was made using this text:

"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."

String Concat

String Concat benchmarks result

String Methods

String Methods benchmarks result


Tasks

Every method printed contains a for loop that iterates 1000 times.

For vs Foreach

For vs Foreach benchmarks result

Async await vs async result

Async await vs async result benchmarks result

ConfigureAwait(false) vs await

ConfigureAwait(false) vs await

ConfigureAwait(true) vs await

ConfigureAwait(true) vs await

ConfigureAwait(true) vs ConfigureAwait(false)

ConfigureAwait(true) vs ConfigureAwait(false)


Types

Object vs Dynamic vs Class

Every method contains a instance of "ClassToTest" with Id, name and address properties.

Object vs Dynamic vs Class

Struct vs Class vs Dynamic

Every method contains a instance of "StructToTest" with Id, name and address properties.

Struct vs Class vs Dynamic

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Releases

No releases published

Packages

No packages published

Languages