Examples of BenchmarkResults


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

Examples of edu.brown.api.results.BenchmarkResults

        if (gdb_sleep > 0) {
            LOG.info("Sleeping for " + gdb_sleep + " waiting for GDB");
            ThreadUtil.sleep(gdb_sleep*1000);
        }
       
        currentResults = new BenchmarkResults(hstore_conf.client.interval,
                                                hstore_conf.client.duration,
                                                m_clientThreads.size());
        currentResults.setEnableBasePartitions(hstore_conf.client.output_basepartitions);
       
       
View Full Code Here

Examples of edu.brown.api.results.BenchmarkResults

   
    private void addPollResponseInfo(String clientName, long time, BenchmarkComponentResults tc, String errMsg) {
        assert(m_currentResults != null);
       
        // Update Transaction Counters
        BenchmarkResults resultCopy = m_currentResults.addPollResponseInfo(
                clientName,
                controller.m_pollIndex - 1,
                time,
                tc,
                errMsg);
        if (resultCopy != null) {
            // notify interested parties
            for (BenchmarkInterest interest : controller.getBenchmarkInterests()) {
                interest.benchmarkHasUpdated(resultCopy);
            } // FOR
            controller.m_maxCompletedPoll = resultCopy.getCompletedIntervalCount();
        }

            // get total transactions run for this segment
//            long txnDelta = 0;
//            for (String client : resultCopy.getClientNames()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.