I used Stopwatch to measure the execution time of a simple code that basically uses:
in very long texts.
Then I got curious and compiled the same C# code for other versions of .NET
- .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.