public void Should_return_valid_data() { Similarity sim = Similarity.Of(_me, _candidate, new uint[100], out uint count); Similarity expected = new Similarity(3.61094677291131E-08f); Assert.That(sim, Is.EqualTo(expected)); }
public void Performance_tests() { Similarity sim = Similarity.Of(_me, _candidate, new uint[100], out uint count); const int iterations = 1_000_000; var watch = Stopwatch.StartNew(); for (int i = 0; i < iterations; i++) { Similarity.Of(_me, _candidate, new uint[100], out count); } watch.Stop(); var opmsec = 1.0 * iterations / watch.ElapsedMilliseconds; Console.WriteLine(opmsec.ToString("N")); }