Is there a difference in the speed of execution of the same code on different versions of the framework (when setting the corresponding version in the properties of the project and recompilation)? In particular, it is interested in 4, 4.5, 4.6

Closed due to the fact that the issue is too general for participants dlarchikov , Dmitriy Simushev , MAXOPKA , Kromster , xaja Aug 17 '15 at 20:22 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    As with all questions about performance, the result depends on the code itself, settings, memory size, system load, wind direction in Redmond, the day of the week, the Papuan population in New Guinea, and the distance to Alpha Centauri. Measure yourself. - VladD
  • Those. Most likely, you can get results that are affected only by measurement errors, and not by changing the target version of the framework. - Welt
  • @Welt, Most likely, whatever data you get on your machine, it may not be true. To find the truth you need to test on different machines, dancing with different tambourines and use not Stopwatch, but some kind of reliable benchmark. - Anton Komyshan

1 answer 1

There is almost always a difference. Your question is too abstract. In a particular case, a particular version is faster, in another case a different version is faster. It is clear to say that some version of the framework is always faster, I think, it will not be correct.

  • Thank you. the difference for unchanged code may be. Then it is worth spending time testing. Just thought that versions differ in functionality / security. - Welt
  • @Welt: As well as other jitter. - VladD 2:51 pm
  • @Welt, definitely worth spending time on testing, if you only need it or you write Critical performance code. You can also use a different JIT compiler (as suggested by VlaD ) with different frameworks. So there are many options for solving the problem, which is solved empirically. - Anton Komyshan