using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using Azimuth; namespace CommandLineTests { class Program { static void Main(string[] args) { for (int i = 0; i < 1000000; ++i) { var rand = new Random(); Vector vec1 = new Vector(rand.NextDouble(), rand.NextDouble()); Vector vec2 = new Vector(rand.NextDouble(), rand.NextDouble()); vec1.DotProduct(vec2); } } //static void Main(string[] args) //{ // const int length = 50*1000*1000; // uint[] listA = new uint[length]; // var listB = new List(length); // var rand = new Random(); // for (int i = 0; i < listA.Length; ++i) // { // listA[i] = (uint)rand.Next(); // listB.Add(listA[i]); // } // { // System.DateTime Start = System.DateTime.Now; // Azimuth.DataStructures.RadixSort.Sort(listA); // System.TimeSpan Duration = System.DateTime.Now - Start; // System.Console.WriteLine("Done. Took " + Duration.TotalSeconds + " seconds"); // } // { // System.DateTime Start = System.DateTime.Now; // listB.Sort(); // System.TimeSpan Duration = System.DateTime.Now - Start; // System.Console.WriteLine("Done. Took " + Duration.TotalSeconds + " seconds"); // } //} } }