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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? baseperftest.java

?? 用于JAVA數(shù)據(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 testsuite.BaseTestCase;import java.text.NumberFormat;import java.util.ArrayList;import java.util.List;/** * 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");		}	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
综合av第一页| 不卡欧美aaaaa| 色综合久久九月婷婷色综合| 日韩欧美一区在线| 一区二区三区四区五区视频在线观看 | 国产色产综合产在线视频| 亚洲高清免费视频| 色呦呦一区二区三区| 日本一二三不卡| 精品一区二区在线看| 欧美一区二区福利视频| 亚洲综合在线电影| 91女人视频在线观看| 日本一区二区视频在线观看| 国内成+人亚洲+欧美+综合在线| 欧美日韩久久一区二区| 亚洲综合色丁香婷婷六月图片| 99久久综合精品| 亚洲国产成人私人影院tom| 国产精品99久久久| 精品99一区二区三区| 久久精品国产亚洲5555| 日韩欧美电影一区| 久久超碰97中文字幕| 欧美刺激脚交jootjob| 蓝色福利精品导航| 日韩欧美一区中文| 国产中文一区二区三区| 欧美xxxxxxxx| 国产一区91精品张津瑜| 国产嫩草影院久久久久| 国产成人午夜精品影院观看视频| 久久精品免视看| 国产91精品欧美| 国产精品久久久久四虎| 91浏览器入口在线观看| 亚洲国产日韩综合久久精品| 欧美日韩国产中文| 精品一二线国产| 国产日韩欧美综合在线| 91视频免费观看| 亚洲一区二区三区国产| 日韩欧美你懂的| 国产精品69毛片高清亚洲| 国产精品久久久久久久久久免费看 | 日本不卡一二三| 久久久午夜电影| 成人av电影观看| 亚洲综合一区二区精品导航| 日韩视频免费直播| 国产不卡在线视频| 一区二区三区在线观看欧美| 欧美一区二区三区四区高清| 国产综合成人久久大片91| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 午夜久久久久久久久| 日韩精品资源二区在线| 风间由美一区二区av101| 亚洲欧美激情插| 日韩欧美一区二区视频| 成人毛片老司机大片| 午夜日韩在线电影| 久久久久久久精| 在线这里只有精品| 国产一区啦啦啦在线观看| 亚洲日本丝袜连裤袜办公室| 91精品国产福利在线观看| 国产成人精品三级| 亚洲成a人v欧美综合天堂下载| 久久久久久97三级| 欧美午夜影院一区| 国产成人自拍网| 亚洲18色成人| 中文字幕亚洲区| 日韩精品中文字幕一区二区三区 | 一卡二卡三卡日韩欧美| 精品国产91洋老外米糕| 91国偷自产一区二区使用方法| 久久电影国产免费久久电影| 一区二区三区四区av| 国产丝袜欧美中文另类| 91精品国产综合久久久蜜臀粉嫩 | 欧美大片日本大片免费观看| 色呦呦网站一区| 国产99久久久国产精品潘金| 日韩电影在线一区二区| 亚洲精品国产a| 国产精品丝袜在线| 日韩精品一区二区三区视频在线观看| 色婷婷av一区二区三区gif| 国产精品影音先锋| 麻豆精品在线观看| 日韩黄色免费网站| 亚洲综合免费观看高清完整版在线 | 国产日产欧美精品一区二区三区| 欧美精品日韩综合在线| 色欧美片视频在线观看在线视频| 国产精品一区二区久久精品爱涩| 日韩成人dvd| 无吗不卡中文字幕| 亚洲一区电影777| 亚洲裸体在线观看| 中文字幕亚洲精品在线观看| 国产欧美精品一区aⅴ影院| 日韩一级免费一区| 欧美一区二区三区视频在线| 8v天堂国产在线一区二区| 精品婷婷伊人一区三区三| 在线观看日韩精品| 欧美日韩在线免费视频| 在线观看免费亚洲| 欧美日韩精品免费| 91精品国产综合久久久久久久 | 激情文学综合网| 激情图片小说一区| 国产麻豆精品久久一二三| 激情综合网av| 国产精品乡下勾搭老头1| 成人黄页毛片网站| 日本精品一区二区三区高清| 在线欧美一区二区| 3d动漫精品啪啪1区2区免费| 91精品欧美久久久久久动漫 | 粉嫩在线一区二区三区视频| 成人视屏免费看| 色妞www精品视频| 欧美日韩电影一区| 欧美本精品男人aⅴ天堂| 精品欧美久久久| 国产精品护士白丝一区av| 亚洲一区二区视频| 久久国产福利国产秒拍| 成人性生交大片免费看视频在线 | 精品91自产拍在线观看一区| 国产婷婷色一区二区三区在线| 国产精品二三区| 无码av中文一区二区三区桃花岛| 老鸭窝一区二区久久精品| 岛国一区二区在线观看| 在线免费观看日韩欧美| 日韩欧美激情一区| 中文字幕一区二区三区乱码在线| 亚洲小说欧美激情另类| 久99久精品视频免费观看| 成人激情黄色小说| 欧美一区二区三区色| 国产日韩欧美一区二区三区乱码 | 成人午夜免费电影| 欧美人妇做爰xxxⅹ性高电影| 欧美va亚洲va国产综合| 国产精品高潮久久久久无| 日韩高清不卡一区| 91色婷婷久久久久合中文| 日韩欧美在线一区二区三区| 中文字幕精品综合| 日韩高清不卡一区二区| 9色porny自拍视频一区二区| 日韩免费一区二区三区在线播放| **性色生活片久久毛片| 精品伊人久久久久7777人| 欧洲色大大久久| 国产午夜精品一区二区三区嫩草 | 精品久久久三级丝袜| 亚洲精选在线视频| 国产成人av影院| 欧美日韩另类一区| 亚洲日本在线看| 成人午夜又粗又硬又大| 精品国产乱码久久久久久影片| 亚洲最大的成人av| thepron国产精品| 26uuu亚洲| 免费观看30秒视频久久| 在线中文字幕不卡| 亚洲天堂网中文字| 国产成人一区在线| 久久夜色精品一区| 美女在线视频一区| 91精品蜜臀在线一区尤物| 亚洲成a人在线观看| 91免费视频大全| 中文字幕国产一区二区| 国产精品一区二区三区99| 日韩欧美一区二区免费| 石原莉奈在线亚洲二区| 欧洲精品在线观看| 亚洲麻豆国产自偷在线| 91美女在线观看| 国产精品久久久久久久午夜片 | 激情久久五月天| 欧美一二三区精品| 日韩国产一二三区| 欧美一区二区视频网站| 免费在线观看精品| 日韩欧美高清一区| 国产原创一区二区三区| 2021国产精品久久精品| 国产一区二区0| 国产精品久久久久久久久久久免费看| 东方欧美亚洲色图在线|