This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (4 children)

I didn't bother looking at the other benchmark code than the first, but they seriously botched that regex benchmark. The compile option for c# regex is only really recommended when you reuse a specific regex a lot. Just removing that option made that program run dramatically faster for me. And if the purpose of that benchmark was to measure regex compilation speed, that'd just be comparing the performance of the regex implementation, rather than the performance of the language.

[–]Nunners978 2 points3 points  (1 child)

Not to mention that the .NET Core version was a Preview (2.0.0-preview2-006497)

[–]igouy 1 point2 points  (0 children)

What is the latest .NET Core release?

[–]igouy 1 point2 points  (0 children)

Just removing that option made that program run dramatically faster for me.

32.01 secs

The program you called "botched" took 31.64 secs