Which one is faster, .NET Core or .NET .Framework?

零下一度
Release: 2017-06-23 16:12:41
Original
5772 people have browsed it

No more nonsense! Here is the speed comparison between .NET core and .NET framework.

Both use the slowest bubble sort algorithm: Sort 100,000 pieces of data

#Numbers .NET CORE(Time consuming) .NET framework (time consuming)
First time

the second time

the third time

On average, .net core takes 39 seconds, while .net fw takes 49 seconds on average. Under the same conditions, .net core performance is leading.

This is just a simple test. I believe .net core will not disappoint .net programmers.

Here is the code, you can test it.

static void maopao()

                                                                                                                                                                                                                                                                                          0; I & lt; 100000; i ++)
{
Numbers.add (new random (). Next (0, 999999)))
}
for (int i = 0; i & lt; numbers.count; i ++)
{
for (int j = i+1; numbers.count; j ++)
{
if (numbers [i] & lt; numbers [j] )
{
int Temp = Numbers [i];
Numbers [i] = numbers [j];
Numbers [j] = test;
}
}
## }
            string d2 = (DateTime.Now - d1).ToString();
              Console.Write(d2); #

The above is the detailed content of Which one is faster, .NET Core or .NET .Framework?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!