分别使用YCSB、PerformanceEvaluation和netpref对是否开iptraf情况下的网络传输进行测试
5台物理机,每台物理机的配置如下:
- CPU:i5-3450(4核/3.1GHZ)
- 内存:32G(8G/1600*4)
- 硬盘:2TB(No Raid)
/* | |
12306 Auto Query => A javascript snippet to help you book tickets online. | |
Copyright (C) 2011 Jingqin Lynn | |
Includes jQuery | |
Copyright 2011, John Resig | |
Dual licensed under the MIT or GPL Version 2 licenses. | |
http://jquery.org/license | |
Includes Sizzle.js |
#!/usr/bin/env sh | |
origin=`curl -i http://202.116.160.166 | egrep '(Cookie)|(VIEW)' --color` | |
session=`echo $origin | perl -n -e '/SessionId=(\S+);/ && print $1'` | |
viewstate=`echo $origin | perl -n -e '/value="(\S+)"/ && print $1'` | |
cookie="Cookie:ASP.NET_SessionId="$session | |
agent="User-Agent:python/gevent-http-client-1.0a" | |
curl -H $cookie http://202.116.160.166/CheckCode.aspx > /tmp/test.gif |
#! /bin/bash | |
### BEGIN INIT INFO | |
# Author: haosdent | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: goagent - a proxy on gae | |
# Description: goagent - a proxy on gae | |
### END INIT INFO | |
LOCATION="/media/system/Download/goagent/local/proxy.py" |
::-webkit-scrollbar-button { | |
height: 0; | |
width: 0; | |
} | |
::-webkit-scrollbar-track { | |
background-clip: padding-box; | |
border: solid transparent; | |
border-width: 0 0 0 4px; | |
} |
var http = require('http'); | |
var options = { | |
host: '202.116.160.173' | |
}; | |
var session, token; | |
var getSessionAndToken = function(){ | |
var req = http.get(options, function(res){ |
#!/usr/bin/env sh | |
origin=`curl -i http://202.116.160.173 | egrep '(Cookie)|(VIEW)' --color` | |
session=`echo $origin | perl -n -e '/SessionId=(\S+);/ && print $1'` | |
viewstate=`echo $origin | perl -n -e '/value="(\S+)"/ && print $1'` | |
cookie="Cookie:ASP.NET_SessionId="$session | |
agent="User-Agent:python/gevent-http-client-1.0a" | |
echo "Type your student id:" | |
read id |
virt-install \ | |
--connect qemu:///system \ | |
--name=vubuntu-1 \ | |
--ram=2048 \ | |
--vcpus=2 \ | |
--cpu=host \ | |
--cdrom=/var/lib/libvirt/images/ubuntu-12.04.2-server-amd64.iso \ | |
--os-variant=ubuntuprecise \ | |
--disk path=/var/lib/libvirt/images/vubuntu-1.qcow2,bus=virtio,size=40,cache=writethrough,format=qcow2,io=native \ | |
--network bridge=virbr0,model=virtio \ |
#!/usr/bin/env bash | |
numbers=(1000 100 10) | |
sizes=(10MB 100MB 1GB) | |
echo "=========================" | |
echo "Start Read Test Cases...." | |
echo "=========================" | |
for (( i=0; i<${#sizes[@]}; i++ )) |