亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? baseperftest.java

?? mysql 5.1的 jdbc驅(qū)動 Connector/J 5.1 支持Mysql 4.1、Mysql 5.0、Mysql 5.1、Mysql 6.0 alpha這些版本。 Connector/J
?? JAVA
字號:
/* Copyright (C) 2002-2004 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package testsuite.perf;import java.text.NumberFormat;import java.util.ArrayList;import java.util.List;import testsuite.BaseTestCase;/** * Base class for performance test cases. Handles statistics. *  * @author Mark Matthews */public abstract class BasePerfTest extends BaseTestCase {	// ~ Static fields/initializers	// ---------------------------------------------	/**	 * Confidence interval lookup table, indexed by degrees of freedom at 95%.	 */	private static final double[] T95 = { 12.706, 4.303, 3.182, 2.776, 2.571,			2.447, 2.365, 2.306, 2.262, 2.228, 2.201, 2.179, 2.160, 2.145,			2.131, 2.120, 2.110, 2.101, 2.093, 2.086, 2.080, 2.074, 2.069,			2.064, 2.060, 2.056, 2.052, 2.048, 2.045, 2.042 };	/**	 * Confidence interval lookup table, indexed by degrees of freedom at 99%.	 */	private static final double[] T99 = { 63.657, 9.925, 5.841, 4.604, 4.032,			3.707, 3.499, 3.355, 3.250, 3.169, 3.106, 3.055, 3.012, 2.977,			2.947, 2.921, 2.898, 2.878, 2.861, 2.845, 2.831, 2.819, 2.807,			2.797, 2.787, 2.779, 2.771, 2.763, 2.756, 2.750 };	static NumberFormat numberFormatter = NumberFormat.getInstance();	static {		numberFormatter.setMaximumFractionDigits(4);		numberFormatter.setMinimumFractionDigits(4);	}	// ~ Instance fields	// --------------------------------------------------------	/**	 * List of values for each iteration	 */	private List testValuesList = new ArrayList();	private double confidenceLevel = 95; // 95% by default	private double confidenceValue = 0;	private double intervalWidth = 0.1;	private double meanValue = 0;	private double squareSumValue = 0;	private double sumValue = 0;	private double variationValue = 0;	/**	 * The number of iterations that we have performed	 */	private int numIterations = 0;	// ~ Constructors	// -----------------------------------------------------------	/**	 * Creates a new BasePerfTest object.	 * 	 * @param name	 *            the testcase name to perform.	 */	public BasePerfTest(String name) {		super(name);	}	// ~ Methods	// ----------------------------------------------------------------	/**	 * Returns the meanValue.	 * 	 * @return double	 */	public double getMeanValue() {		return this.meanValue;	}	/**	 * Sub-classes should override this to perform the operation to be measured.	 * 	 * @throws Exception	 *             if an error occurs.	 */	protected abstract void doOneIteration() throws Exception;	/**	 * Returns the current confidence level.	 * 	 * @return the current confindence level.	 */	protected double getCurrentConfidence() {		return (this.intervalWidth - this.confidenceValue) * 100;	}	/**	 * Returns the current margin of error.	 * 	 * @return the current margin of error.	 */	protected double getMarginOfError() {		return getConfidenceLookup()				* (getStandardDeviationP() / Math.sqrt(this.numIterations));	}	/**	 * Returns the current STDDEV.	 * 	 * @return the current STDDEV	 */	protected double getStandardDeviationP() {		if (this.numIterations < 1) {			return 0;		}		return Math				.sqrt(((this.numIterations * this.squareSumValue) - (this.sumValue * this.sumValue))						/ (this.numIterations * this.numIterations));	}	/**	 * Adds one test result to the statistics.	 * 	 * @param value	 *            a single result representing the value being measured in the	 *            test.	 */	protected void addResult(double value) {		this.numIterations++;		this.testValuesList.add(new Double(value));		this.sumValue += value;		this.squareSumValue += (value * value);		this.meanValue = this.sumValue / this.numIterations;		this.variationValue = (this.squareSumValue / this.numIterations)				- (this.meanValue * this.meanValue);		// Can only have confidence when more than one test		// has been completed		if (this.numIterations > 1) {			this.confidenceValue = this.intervalWidth					- ((2.0 * getConfidenceLookup() * Math							.sqrt(this.variationValue									/ (this.numIterations - 1.0))) / this.meanValue);		}	}	/**	 * Calls doIteration() the <code>numIterations</code> times, displaying	 * the mean, std, margin of error and confidence level.	 * 	 * @param numIterations	 *            the number of iterations to perform ( < 30)	 * @throws Exception	 *             if an error occurs.	 */	protected void doIterations(int numIterations) throws Exception {		for (int i = 0; i < numIterations; i++) {			doOneIteration();		}	}	/**	 * Reports the current results to STDOUT, preceeded by	 * <code>additionalMessage</code> if not null.	 * 	 * @param additionalMessage	 *            the additional message to print, or null if no message.	 */	protected synchronized void reportResults(String additionalMessage) {		StringBuffer messageBuf = new StringBuffer();		if (additionalMessage != null) {			messageBuf.append(additionalMessage);			messageBuf.append(": ");		}		messageBuf.append(" mean: ");		messageBuf.append(numberFormatter.format(this.meanValue));		messageBuf.append(" stdevp: ");		messageBuf.append(numberFormatter.format(getStandardDeviationP()));		messageBuf.append(" m-o-e: ");		messageBuf.append(numberFormatter.format(getMarginOfError()));		System.out.println(messageBuf.toString());	}	private double getConfidenceLookup() {		if (this.confidenceLevel == 95) {			return T95[this.numIterations - 1];		} else if (this.confidenceLevel == 99) {			return T99[this.numIterations - 1];		} else {			throw new IllegalArgumentException(					"Confidence level must be 95 or 99");		}	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久欧美精品sm网站| 国产精品久久久久久亚洲伦| 国产成人小视频| 一区二区三区在线观看动漫| 337p亚洲精品色噜噜噜| 国产不卡一区视频| 日本在线观看不卡视频| 国产精品网站一区| 日韩欧美精品三级| 欧美三区免费完整视频在线观看| 国产传媒一区在线| 免费成人在线影院| 亚洲一二三四久久| 自拍视频在线观看一区二区| 精品国产乱码久久久久久蜜臀| 久久综合999| 制服丝袜中文字幕亚洲| 色婷婷激情综合| 国产成人在线免费| 蜜臀久久99精品久久久久久9| 国产欧美日韩一区二区三区在线观看| 欧美浪妇xxxx高跟鞋交| 97成人超碰视| 成人黄色国产精品网站大全在线免费观看| 亚欧色一区w666天堂| 亚洲欧美激情小说另类| 亚洲国产成人自拍| 久久蜜臀中文字幕| 欧美成va人片在线观看| 88在线观看91蜜桃国自产| 色偷偷一区二区三区| 成人av网站在线观看| 国产精品12区| 国产宾馆实践打屁股91| 国产精品自拍三区| 激情六月婷婷久久| 国产在线观看一区二区| 久久成人免费网站| 精品一区二区三区在线播放视频 | 欧美精品一二三四| 欧美在线制服丝袜| 欧美伊人久久久久久久久影院 | 精品中文av资源站在线观看| 免费高清视频精品| 久久精品国产亚洲高清剧情介绍 | 精品福利av导航| 日韩女优制服丝袜电影| 日韩精品一区国产麻豆| 欧美电视剧在线观看完整版| 日韩精品一区二区三区在线播放 | 欧美视频在线观看一区| 欧洲精品视频在线观看| 欧美主播一区二区三区| 欧美色爱综合网| 欧美日韩久久久| 日韩一区二区精品葵司在线 | 欧美日韩在线综合| 欧美日韩精品免费观看视频| 3751色影院一区二区三区| 欧美v日韩v国产v| 国产欧美视频在线观看| ...av二区三区久久精品| 夜夜嗨av一区二区三区| 日韩国产一二三区| 国产在线精品一区二区三区不卡 | 欧美日韩视频一区二区| 制服丝袜av成人在线看| 欧美大尺度电影在线| 国产精品欧美久久久久无广告| 亚洲欧美日韩国产一区二区三区 | 亚洲成国产人片在线观看| 日韩专区一卡二卡| 国产乱色国产精品免费视频| 国产成人精品免费一区二区| 91老师片黄在线观看| 欧美在线999| 精品国产免费一区二区三区香蕉| 久久精品一级爱片| 亚洲视频免费看| 午夜av一区二区| 国产精品一区在线观看乱码| 在线精品亚洲一区二区不卡| 精品久久国产字幕高潮| ...xxx性欧美| 久久99久久久久| 91小视频免费观看| 日韩精品一区二区三区在线| 国产精品久久久久久妇女6080| 亚洲成人资源网| 国产乱妇无码大片在线观看| 在线观看日韩电影| 久久蜜臀精品av| 亚洲成av人影院在线观看网| 高清shemale亚洲人妖| 911国产精品| 中文字幕欧美一| 精品影院一区二区久久久| 色悠悠久久综合| 久久久亚洲欧洲日产国码αv| 夜夜操天天操亚洲| proumb性欧美在线观看| 日韩美女一区二区三区四区| 一区二区三区欧美| 国产一区二区三区av电影| 欧美精品一二三区| 自拍偷自拍亚洲精品播放| 国产在线精品一区二区不卡了| 欧美日韩一级大片网址| 国产精品灌醉下药二区| 国产精品一区二区免费不卡| 欧美裸体bbwbbwbbw| 亚洲日本va午夜在线影院| 国产一区二区在线免费观看| 欧美一区二区三区色| 亚洲一区二区黄色| 91视频免费看| 国产精品福利在线播放| 国产乱人伦精品一区二区在线观看| 欧美日韩国产天堂| 一区二区成人在线观看| 色综合色综合色综合| 国产欧美久久久精品影院| 狠狠色丁香婷婷综合| 欧美一区二区视频免费观看| 午夜日韩在线电影| 欧美吻胸吃奶大尺度电影| 亚洲男女一区二区三区| 波波电影院一区二区三区| 欧美高清在线视频| 国产成人免费高清| 久久久久久久网| 国产精品一卡二卡| 久久久三级国产网站| 国产九色精品成人porny| 26uuu另类欧美亚洲曰本| 久久精品国产网站| 精品久久久久一区| 国产自产v一区二区三区c| 日韩欧美一区二区在线视频| 蜜臀av性久久久久av蜜臀妖精| 777xxx欧美| 免费观看30秒视频久久| 日韩一区二区三区电影 | 91麻豆国产福利精品| 亚洲视频一区二区免费在线观看| 色综合网站在线| 亚洲精品国产成人久久av盗摄| 色哟哟精品一区| 亚洲一区二区三区四区中文字幕| 欧美性做爰猛烈叫床潮| 午夜国产精品一区| 日韩片之四级片| 国产在线精品一区二区夜色| 久久精品国产精品青草| 久久先锋资源网| 国产成人av福利| 亚洲欧美一区二区三区久本道91| 91福利区一区二区三区| 日韩不卡一二三区| 久久久久99精品国产片| 91丨九色porny丨蝌蚪| 亚洲午夜精品在线| 欧美mv日韩mv亚洲| 不卡区在线中文字幕| 亚洲与欧洲av电影| 欧美xxxxx牲另类人与| 成人av在线电影| 亚洲午夜电影网| 精品国产乱码久久久久久蜜臀| 成人性生交大片免费看中文网站| 亚洲自拍另类综合| 精品久久久久久亚洲综合网| av电影在线观看一区| 日韩国产一区二| 国产精品国产三级国产普通话99 | 久久久影视传媒| 色婷婷精品大视频在线蜜桃视频| 日韩国产在线一| 国产精品麻豆99久久久久久| 欧美日韩免费电影| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 欧美tickling网站挠脚心| 成人动漫一区二区三区| 亚洲第一狼人社区| 国产日韩精品一区二区三区| 欧美亚洲国产一区二区三区va | 国产欧美日韩亚州综合| 欧美日韩中文精品| 成人中文字幕在线| 午夜免费久久看| 欧美激情综合五月色丁香小说| 欧美精品高清视频| 成+人+亚洲+综合天堂| 日韩精品成人一区二区在线| 国产精品青草久久| 欧美mv日韩mv| 欧美日韩国产系列| 色视频一区二区| 国产91精品久久久久久久网曝门| 日本麻豆一区二区三区视频|