Click here to Skip to main content
15,886,873 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: BD subtitle extraction Pin
trønderen4-Jun-22 3:40
trønderen4-Jun-22 3:40 
General.NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani3-Jun-22 5:52
georani3-Jun-22 5:52 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
PIEBALDconsult3-Jun-22 6:12
mvePIEBALDconsult3-Jun-22 6:12 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
0x01AA3-Jun-22 9:42
mve0x01AA3-Jun-22 9:42 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
PIEBALDconsult3-Jun-22 9:58
mvePIEBALDconsult3-Jun-22 9:58 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani3-Jun-22 11:50
georani3-Jun-22 11:50 
QuestionRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Randor 3-Jun-22 12:06
professional Randor 3-Jun-22 12:06 
AnswerRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani8-Jun-22 4:03
georani8-Jun-22 4:03 
Randor wrote:
Can you run the String.IndexOf benchmark again using StringComparison.Ordinal and post the result?


Thanks, it is the solution:

Now .NET 6.0 is 2X times FASTER than .NET Framework 4.8

Starting tests for .NET Framework 3.5, wait...
Elapsed Time for   [String.Replace]: 51,0830947 sec
Elapsed Time for   [String.IndexOf]: 0,5451713 sec
Elapsed Time for  [String.Contains]: 0,5424978 sec
Elapsed Time for [String.SubString]: 17,7345287 sec
Elapsed Time for    [String.Remove]: 15,021131 sec

Elapsed Time for         [.NET 3.5]: 84,9272387 sec

Starting tests for .NET Framework 4.8, wait...
Elapsed Time for   [String.Replace]: 53,2363039 sec
Elapsed Time for   [String.IndexOf]: 0,5760411 sec
Elapsed Time for  [String.Contains]: 0,595356 sec
Elapsed Time for [String.SubString]: 14,8117435 sec
Elapsed Time for    [String.Remove]: 11,2053769 sec

Elapsed Time for         [.NET 4.8]: 80,4258634 sec

Starting tests for .NET 6.0, wait...
Elapsed Time for   [String.Replace]: 18,5094685 sec
Elapsed Time for   [String.IndexOf]: 0,3495122 sec
Elapsed Time for  [String.Contains]: 0,32621 sec
Elapsed Time for [String.SubString]: 12,1062252 sec
Elapsed Time for    [String.Remove]: 10,1427749 sec

Elapsed Time for         [.NET 6.0]: 41,4367067 sec

GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Randor 10-Jun-22 6:13
professional Randor 10-Jun-22 6:13 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Pete O'Hanlon3-Jun-22 10:06
mvePete O'Hanlon3-Jun-22 10:06 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani3-Jun-22 11:38
georani3-Jun-22 11:38 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
JustDre6-Jun-22 6:31
JustDre6-Jun-22 6:31 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
pkfox3-Jun-22 11:02
professionalpkfox3-Jun-22 11:02 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani3-Jun-22 11:37
georani3-Jun-22 11:37 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
PIEBALDconsult3-Jun-22 12:29
mvePIEBALDconsult3-Jun-22 12:29 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
englebart3-Jun-22 15:35
professionalenglebart3-Jun-22 15:35 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Gerry Schmitz4-Jun-22 4:06
mveGerry Schmitz4-Jun-22 4:06 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani4-Jun-22 5:46
georani4-Jun-22 5:46 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Gerry Schmitz4-Jun-22 10:54
mveGerry Schmitz4-Jun-22 10:54 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Eddy Vluggen4-Jun-22 7:11
professionalEddy Vluggen4-Jun-22 7:11 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
georani4-Jun-22 10:21
georani4-Jun-22 10:21 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Eddy Vluggen4-Jun-22 11:13
professionalEddy Vluggen4-Jun-22 11:13 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
zdimension6-Jun-22 1:08
zdimension6-Jun-22 1:08 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Eddy Vluggen7-Jun-22 10:35
professionalEddy Vluggen7-Jun-22 10:35 
GeneralRe: .NET 6.0 is Slower than .NET Framework In Some String Operations Pin
Member 20992696-Jun-22 1:19
Member 20992696-Jun-22 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.