Package benchmarks.benchmarker

Examples of benchmarks.benchmarker.BenchmarkResults


                    final F1<Object, Object> f = solver.f();

                    System.out.print("    " + solver.name() + ": ");

                    // Let the benchmark run
                    final BenchmarkResults results = Benchmarker.benchmark(new F0() {
                        @Override
                        public void f() {
                            f.f(d);
                        }
                    }, 20);

                    // And print results of the last n runs
                    System.out.print(results.median(10) + "µs (");
                    long[] values = results.values();
                    for (int i = 0; i < values.length; i++) {
                        System.out.print(values[i] + "µs");
                        if(i < values.length - 1) System.out.print(" ");
                    }
                    System.out.println(")");
View Full Code Here

TOP

Related Classes of benchmarks.benchmarker.BenchmarkResults

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.