Home > Article > Backend Development > Which one is faster, .NET Core or .NET .Framework?
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 |
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!