Example #1
0
        static void Main(string[] args)
        {
            var interpreters = new IBfInterpreter[] {
                //new ReferenceInterpreter(),
                //new Optimization01()
                //new Optimization02()
                //new Optimization04()
                //new Optimization05()
                //new Optimization06()
                //new Optimization07()
                //new Optimization08()
                //new Optimization09()
                //new Optimization10()
                //new Optimization11()
                new Optimization12()
            };

            using (FileStream source = File.OpenRead("mandelbrot.bf"))
            {
                Benchmark(interpreters, source);
            }
        }
Example #2
0
 public Benchmark(IBfInterpreter interpreter)
 {
     _interpreter = interpreter;
 }