static void Main(string[] args) { int n = 10000; Stopwatch stopwatch = new Stopwatch(); //stopwatch.Start(); //var result1 = CalkaHelper.CalkaGPU(n); //stopwatch.Stop(); //Console.WriteLine(result1); //Console.WriteLine("Time: " + stopwatch.Elapsed.TotalSeconds); stopwatch.Reset(); stopwatch.Start(); var result2 = CalkaHelper.CalkaCPU(0, n, n); stopwatch.Stop(); Console.WriteLine(result2); Console.WriteLine("Time: " + stopwatch.Elapsed.TotalSeconds); stopwatch.Reset(); stopwatch.Start(); var result3 = CalkaHelper.CalkaRozproszone(ClientsURLs, n); stopwatch.Stop(); Console.WriteLine(result3); Console.WriteLine("Time: " + stopwatch.Elapsed.TotalSeconds); Console.ReadLine(); }
public IHttpActionResult WynikCPU(int start, int stop, int n) { return(Ok(CalkaHelper.CalkaCPU(start, stop, n))); }