[ad_1]
Asked
Viewed
22 times
I used Stopwatch to measure the execution time of a simple code that basically uses:
- String.IndexOf
- String.Substring
- String.Replace
in very long texts.
Then I got curious and compiled the same C# code for other versions of .NET
Results:
- .NET 3.5 (2007): 32 Seconds
- .NET 4.5 (2012): 50 Seconds
- .NET 4.8 (2019): 51 Seconds
- .NET 6.0 (2022): 80 Seconds
The results in VB.NET are similar.
3
default
[ad_2]