资源预览内容
第1页 / 共3页
第2页 / 共3页
第3页 / 共3页
亲,该文档总共3页全部预览完了,如果喜欢就下载吧!
资源描述
Chariot脚本最基本组成部分(2007-10-29 14:52:51)LOOP count = number_of_timing_records(50)/ 外循环,确定脚本总循环次数(50) START_TIMER计数开始,同时内循环中transactions_per_second初始化 LOOP count = transaction_per_second(100)/内循环,每次循环传输数量(100)个 INCREMENT_TRANSACTION /循环次数加一 END_LOOP /这玩意儿不用解释了吧 END_TIMER /同上END_LOOP /同上上中间还有什么SEND啦,SLEEP啦,CONNECT_INITIATE啦,如果是测试streaming的开头还有RTP_PAYLOAD_TYPE 选择传输模式(TYPE可以翻译成模式吗?不知道),总之上面列出来的是最基本的组成部分(DISCONNECT和close_type其实也算 吧不管,online library上没写)。Chariot中吞吐量等值的算法(2007-10-29 15:30:33)ThroughputThe throughput is usually calculated with the following equation:(Bytes_Sent + Bytes_Received_By_Endpoint_1) / (Throughput_Units) / Measured_TimeAverage throughput of a group is calculated this way for a non-streaming script:bytes_sent + bytes_received (total for all pairs) / elapsed timeIf you are running a streaming script, the following equation is used:bytes received (by E2) / Measured timeAverage throughput for a group of pairs running a streaming script is calculated this way:bytes_received_by_endpoint_2 (total for all pairs) / elapsed_timeAverage throughput for a multicast group is calculated asmax total bytes received by any multicast E2 / elapsed timeIn all calculations, elapsed time is the elapsed time of the longest-running pair in the test. The measured time is the sum, in seconds, of all the timing record durations returned for the endpoint pair.Heres how each of the script variables is defined:Bytes_Sent-the number of bytes sent by Endpoint 1 of a pair.Bytes_Received-the number of bytes received by the endpoint of a pair.Throughput_Units-the current throughput units value, in bytes per second. For example, if the throughput units are KBps, 1024 is the Throughput_Units value. In this example, the throughput units number is shown in the column heading as Mbps, which is 125,000 bytes per second (that is, 1,000,000 bits divided by 8 bits per byte).Transaction RateThe calculations are shown in transactions per second. This rate is calculated as follows:Transaction_Count / Measured_TimeResponse TimeThe response time is the inverse of the transaction rate. The calculations are shown in seconds per transaction. This value is calculated as follows:Measured_Time / Transaction_CountLost DataThe lost data is the difference between the number of bytes sent by Endpoint 1 and the number of bytes Endpoint 2 actually received. Lost data is only calculated when a pair is running a streaming script (for example, in a VoIP or IP Multicast test). Only payload data is included in the calculations.
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号