This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PFM's method. | |
public static unsafe void TestMethod1() | |
{ | |
float* samples = stackalloc float[12500]; | |
for (var i = 0; i < 100; i++) | |
{ | |
for (var ii = 0; ii < 12500; ii++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// M1 is 108% faster than M2. | |
public static unsafe void TestMethod1() | |
{ | |
float* samples = stackalloc float[12500]; | |
for (var i = 0; i < 4000; i++) | |
{ | |
for (var ii = 0; ii < 12500; ii++) | |
{ |
NewerOlder