Exemple #1
0
        public void Fastenshtein_1_0_0_5()
        {
            for (int i = 0; i < words.Length; i++)
            {
                var levenshtein = new global::Fastenshtein.Benchmarking.FastenshteinOld.Fastenshtein_1_0_0_5(words[i]);

                for (int j = 0; j < words.Length; j++)
                {
                    levenshtein.DistanceFrom(words[j]);
                }
            }
        }
        public void Fastenshtein_1_0_0_5()
        {
            Parallel.For(0, words.Length, i =>
            {
                var levenshtein = new global::Fastenshtein.Benchmarking.FastenshteinOld.Fastenshtein_1_0_0_5(words[i]);

                for (int j = 0; j < words.Length; j++)
                {
                    levenshtein.DistanceFrom(words[j]);
                }
            });
        }
        public void Fastenshtein_1_0_0_5()
        {
            var levenshtein = new global::Fastenshtein.Benchmarking.FastenshteinOld.Fastenshtein_1_0_0_5("test");

            levenshtein.DistanceFrom("test");
        }
Exemple #4
0
        public int Fastenshtein_1_0_0_5()
        {
            var levenshtein = new global::Fastenshtein.Benchmarking.FastenshteinOld.Fastenshtein_1_0_0_5("test");

            return(levenshtein.DistanceFrom("test"));
        }