Проблемы производительности .NET 8
От: yenik  
Дата: 22.11.23 11:14
Оценка:

NET 8 has undoubtedly showcased remarkable improvements in performance, and the dedicated efforts of the .NET team have positioned it as one of the most performant programming languages available today.

However, during my review of the benchmark data, I identified certain areas where performance has regressed compared to .NET 6, the last long-term support version. While many of these findings do not exhibit a significant drop in performance, it’s crucial to acknowledge that when using methods demonstrated in this article that are invoked possibly thousands of times per second, the cumulative effect of these performance losses can become substantial.

https://dotnettips.wordpress.com/2023/11/14/analyzing-performance-issues-in-microsoft-net-8/

Мопед не мой, мне что-то недосуг бенчмаркать. А ссылку на репо со своими бенчмарками автор не предоставил.
Re: Проблемы производительности .NET 8
От: Разраб  
Дата: 22.11.23 11:31
Оценка:
Здравствуйте, yenik, Вы писали:


Y>Мопед не мой, мне что-то недосуг бенчмаркать. А ссылку на репо со своими бенчмарками автор не предоставил.


Время старта приложений сократилось, а это главное.
☭ ✊ В мире нет ничего, кроме движущейся материи.
Re[2]: Проблемы производительности .NET 8
От: 4058  
Дата: 22.11.23 12:06
Оценка:
Здравствуйте, Разраб, Вы писали:

Р>Время старта приложений сократилось, а это главное.


Смотря где, если на мобильном софте особо не требовательном к производительности (типа банковских клиентов, почтовиков) — может и главное, а в остальных случаях (сервера, игры и т.п.) — совершенно точно нет, т.к. там как раз важна производительность после "старта".
Re: Проблемы производительности .NET 8
От: Петрухин Эдуард Россия  
Дата: 22.11.23 12:33
Оценка: +4
Здравствуйте, yenik, Вы писали:

Y>

Y>NET 8 has undoubtedly showcased remarkable improvements in performance, and the dedicated efforts of the .NET team have positioned it as one of the most performant programming languages available today.

Y>However, during my review of the benchmark data, I identified certain areas where performance has regressed compared to .NET 6, the last long-term support version. While many of these findings do not exhibit a significant drop in performance, it’s crucial to acknowledge that when using methods demonstrated in this article that are invoked possibly thousands of times per second, the cumulative effect of these performance losses can become substantial.

Y>https://dotnettips.wordpress.com/2023/11/14/analyzing-performance-issues-in-microsoft-net-8/

Там, по ссылке, что-то очень странное. Например, почти в самом начале:

Creating reference types is 1.27 times slower. Furthermore, creating objects using the new style (as demonstrated below) is 1.14 times slower.

Person person = new();

Как-то тяжело всерьёз воспринимать статью по производительности .Net, когда автор считает что
Person person = new();

и
Person person = new Person();

могут отличаться по скорости в пределах погрешности.

Ну и, самое главное, нет кода бенчмарков.
... << RSDN@Home 1.0.0 alpha 5 rev. 0>>
Отредактировано 22.11.2023 12:36 Петрухин Эдуард . Предыдущая версия .
Re[2]: Проблемы производительности .NET 8
От: yenik  
Дата: 22.11.23 16:31
Оценка:
ПЭ>Там, по ссылке, что-то очень странное. Например, почти в самом начале:
ПЭ>

ПЭ>Creating reference types is 1.27 times slower. Furthermore, creating objects using the new style (as demonstrated below) is 1.14 times slower.
ПЭ>

ПЭ>Person person = new();
ПЭ>

ПЭ>Как-то тяжело всерьёз воспринимать статью по производительности .Net, когда автор считает что
ПЭ>
ПЭ>Person person = new();
ПЭ>

ПЭ>и
ПЭ>
ПЭ>Person person = new Person();
ПЭ>

ПЭ>могут отличаться по скорости в пределах погрешности.

Он не говорит, что эти два варианта различаются между собой. Я так понял, что речь идёт вообще об инстанциировании объектов. Высказывание о новом стиле звучит весьма туманно, учитывая, что new() уже давно не новшество.

ПЭ>Ну и, самое главное, нет кода бенчмарков.


Это действительно подозрительно. Хотя вроде не фармазон https://dotnettips.wordpress.com/about/
Re: Проблемы производительности .NET 8
От: bobby23  
Дата: 23.11.23 18:42
Оценка: 17 (2)
Здравствуйте, yenik, Вы писали:

Y>

Y>NET 8 has undoubtedly showcased remarkable improvements in performance, and the dedicated efforts of the .NET team have positioned it as one of the most performant programming languages available today.

Y>However, during my review of the benchmark data, I identified certain areas where performance has regressed compared to .NET 6, the last long-term support version. While many of these findings do not exhibit a significant drop in performance, it’s crucial to acknowledge that when using methods demonstrated in this article that are invoked possibly thousands of times per second, the cumulative effect of these performance losses can become substantial.

Y>https://dotnettips.wordpress.com/2023/11/14/analyzing-performance-issues-in-microsoft-net-8/

Y>Мопед не мой, мне что-то недосуг бенчмаркать. А ссылку на репо со своими бенчмарками автор не предоставил.


проверил на этом коде
https://pastebin.com/2UKzuEKX
нет8 быстрее чем нет7(2059 вс 2756)
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.