A collection of interesting .NET benchmarks to clear up common performance-related misconceptions. Benchmarks are written with BenchmarkDotNet.
- StringBuilder versus string concatenation
At what point should you use a StringBuilder instead of concatenating strings? - Example 2
These are some details/questions about example 2. - Example 3
These are some details/questions about example 3. - Example 4
These are some details/questions about example 4.
Interesting .NET Benchmarks is licensed under the GNU General Public License v3.0
Copyright (C) 2020 Marcus Otterström
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.