Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Stress Test");
            Console.WriteLine("===========");

            using (var l = new Logger(@"filename=d:\stress\eventLog.db; mode=shared"))
                using (var e = new ExampleStressTest(@"d:\stress\example.db", l))
                {
                    e.Run(TimeSpan.FromMinutes(1));
                }

            Console.WriteLine("Stress test finish");

            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Stress Test");
            Console.WriteLine("===========");
            Console.Write("Enter test duration (minutes): ");
            var timer = Console.ReadLine();

            using (var e = new ExampleStressTest(@"C:\Git\Temp\stress\example.db"))
            {
                e.Synced = true;

                e.Run(TimeSpan.FromMinutes(string.IsNullOrEmpty(timer) ? .5 : Convert.ToDouble(timer)));
            }

            Console.WriteLine("End");
            Console.ReadKey();
        }