Skip to content

A suite of benchmarking projects, were you can analyze execution times, memory usage and...[ Click to read more ]

License

Notifications You must be signed in to change notification settings

ricardocardoso-dev/DotNetBenchmarks

Repository files navigation

Dot Net Benchmarks

GitHub license GitHub issues GitHub stars GitHub forks GitHub last commit Lines of code Lines of code

Introduction

Welcome to our benchmarking project in .NET with C#! Whether you're optimizing existing code or developing new applications, understanding performance is crucial. With our suite of benchmarking projects, you can analyze execution times, memory usage, and more, making informed decisions to enhance your software's efficiency and reliability. Explore our benchmarks and optimize your .NET C# code effectively.

Technologies Used

Back-End (Console Aplication)

Swashbuckle.AspNetCore .NET Version .NET Version .NET Version .NET Version .NET Version

Benchmarks


Metric Description
Mean The average execution time of a method across multiple iterations.
Error The margin of error associated with the mean, indicating uncertainty.
StdDev The standard deviation measures the dispersion or spread of execution times around the mean.
Median The middle value of a dataset when arranged in ascending order.

List Search Methods

.NET 8.0


Rank .NET Framework Method Mean Error StdDev
1 8.0 Find() 7.165 us 0.2059 us 0.5973 us
2 8.0 FirstOrDefault() 11.567 us 0.3401 us 0.9593 us
3 8.0 Where_FirstOrDefault() 11.801 us 0.2776 us 0.8055 us

.NET 4.8


Rank .NET Framework Method Mean Error StdDev Median
1 4.8 Find() 17.16 us 0.651 us 1.918 us 17.30 us
2 4.8 Where_FirstOrDefault() 17.92 us 0.947 us 2.670 us 16.97 us
3 4.8 FirstOrDefault() 43.49 us 3.421 us 10.086 us 39.22 us

Summary - List Search Methods


Rank .NET Framework Method Mean Error StdDev
1 8.0 Find() 7.165 us 0.2059 us 0.5973 us
2 4.8 Find() 17.16 us 0.651 us 1.918 us

Rank .NET Framework Method Mean Error StdDev
1 8.0 FirstOrDefault() 11.567 us 0.3401 us 0.9593 us
2 4.8 FirstOrDefault() 43.49 us 3.421 us 10.086 us


Rank .NET Framework Method Mean Error StdDev Median
1 8.0 Where_FirstOrDefault() 11.801 us 0.2776 us 0.8055 us
2 4.8 Where_FirstOrDefault() 17.92 us 0.947 us 2.670 us 16.97 us

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

The MIT License is a permissive open-source license that allows you to use, modify, and distribute this software for both commercial and non-commercial purposes. You should include the full text of the MIT License in a file named LICENSE in your repository.

About

A suite of benchmarking projects, were you can analyze execution times, memory usage and...[ Click to read more ]

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages