{"id":5452,"date":"2023-11-22T20:00:24","date_gmt":"2023-11-22T19:00:24","guid":{"rendered":"https:\/\/soci.hu\/blog\/?p=5452"},"modified":"2023-11-22T20:21:53","modified_gmt":"2023-11-22T19:21:53","slug":"net-8-vs-net-7-performance","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2023\/11\/22\/net-8-vs-net-7-performance\/","title":{"rendered":".NET 8 vs. NET 7 performance"},"content":{"rendered":"\n<p>This is a short and non-scientific but exciting comparison of the two versions. I have a very CPU and Memory intensive financial simulation. How does the same code work under .NET 8? So, I changed the target framework in the project files and recompiled the code to .NET 8.  I ran the tests several times, and the results were very similar. I did not cherry-pick the examples.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"1360\" src=\"https:\/\/soci.hu\/blog\/wp-content\/uploads\/2023\/11\/image.png\" alt=\"\" class=\"wp-image-5453\" srcset=\"https:\/\/soci.hu\/blog\/wp-content\/uploads\/2023\/11\/image.png 925w, https:\/\/soci.hu\/blog\/wp-content\/uploads\/2023\/11\/image-768x1129.png 768w\" sizes=\"auto, (max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<p>The numbers are self-explaining. The duration of the simulation decreased from 51 sec to 45 sec. Congratulations to the .NET team; I got a 13% performance improvement for free.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a short and non-scientific but exciting comparison of the two versions. I have a very CPU and Memory intensive financial&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[192,193,99,168,4],"tags":[],"class_list":["post-5452","post","type-post","status-publish","format-standard","hentry","category-net-7","category-net-8","category-net-core","category-dotnet-performance-optimization","category-szakmai-elet"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/5452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=5452"}],"version-history":[{"count":2,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/5452\/revisions"}],"predecessor-version":[{"id":5455,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/5452\/revisions\/5455"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=5452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=5452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=5452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}