acdc486510
* Initial update for net8 and netstandard2 * delete more and fix test folders * clean up changes * format * more clean up * allow build script to run * format again * fix packing and tests * do tests always * fmt again
31 lines
778 B
C#
31 lines
778 B
C#
//using Microsoft.Xunit.Performance;
|
|
|
|
namespace Speckle.DoubleNumerics.Tests.Performance;
|
|
|
|
public static class HashCodeTest
|
|
{
|
|
/*
|
|
[Benchmark(InnerIterationCount = 100000000)]
|
|
public static void HashTest()
|
|
{
|
|
Random rand = new Random(84329);
|
|
Vector4 vector4 = new Vector4(
|
|
Convert.ToSingle(rand.NextDouble()),
|
|
Convert.ToSingle(rand.NextDouble()),
|
|
Convert.ToSingle(rand.NextDouble()),
|
|
Convert.ToSingle(rand.NextDouble()));
|
|
|
|
foreach (var iteration in Benchmark.Iterations)
|
|
{
|
|
using (iteration.StartMeasurement())
|
|
{
|
|
for (int i = 0; i < Benchmark.InnerIterationCount; i++)
|
|
{
|
|
vector4.GetHashCode();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
*/
|
|
}
|