|
NaN
) or is infinite (happens when the reference value is equals to 0!)");
this.stream.println("<li>\"n/a\": mark a test for with no performance results");
this.stream.println("</ul>");
this.stream.println("<li>the value of the deviation from the baseline as a percentage (ie. formula is: (build_test_time - baseline_test_time) / baseline_test_time
)");
this.stream.println("<li>the value of the standard error of this deviation as a percentage (ie. formula is: sqrt(build_test_stddev^2 / N + baseline_test_stddev^2 / N) / baseline_test_time
)
What this is
Other links
The source code/******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.test.performance.ui; import java.io.PrintStream; import java.util.List; import java.util.StringTokenizer; import org.eclipse.test.internal.performance.results.BuildResults; import org.eclipse.test.internal.performance.results.ConfigResults; import org.eclipse.test.internal.performance.results.PerformanceResults; import org.eclipse.test.internal.performance.results.ScenarioResults; /** * Class used to print a scenario status table. */ public class ScenarioStatusTable { private String component; private PrintStream stream; private int jsIdCount; /** * Creates an HTML table of red x/green check for a scenario for each * configuration. */ public ScenarioStatusTable(String name, PrintStream stream) { this.component = name; this.stream = stream; } /** * Prints the HTML representation of scenario status table into the given stream. */ public void print(PerformanceResults performanceResults) { printTitle(); List scenarios = performanceResults.getComponentScenarios(this.component); String baselineName = performanceResults.getBaselineName(); int size = scenarios.size(); printColumnsTitle(size, performanceResults); this.jsIdCount = 0; for (int i=0; i<size; i++) { ScenarioResults scenarioResults = (ScenarioResults) scenarios.get(i); this.stream.println("<tr>"); this.stream.print("<td>"); boolean hasSummary = scenarioResults.hasSummary(); if (hasSummary) this.stream.print("<b>"); String scenarioBaseline = scenarioResults.getBaselineBuildName(); boolean hasBaseline = baselineName.equals(scenarioBaseline); if (!hasBaseline) { this.stream.print("*"); this.stream.print(scenarioResults.getShortName()); this.stream.print(" <small>(vs. "); this.stream.print(scenarioBaseline); this.stream.print(")</small>"); } else { this.stream.print(scenarioResults.getShortName()); } if (hasSummary) this.stream.print("</b>"); this.stream.println(); String[] configs = performanceResults.getConfigNames(true/*sort*/); int length = configs.length; for (int j=0; j<length; j++) { printConfigStats(scenarioResults, configs[j]); } } this.stream.println("</table>"); } /* * Print the table columns title. */ private void printColumnsTitle(int size, PerformanceResults performanceResults) { this.stream.println("<table border=\"1\">"); this.stream.println("<tr>"); this.stream.print("<td> |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.