Timing cached reads: 10122 MB in 1.99 seconds = 5088.70 MB/sec
Timing buffered disk reads: 300 MB in 3.00 seconds = 99.87 MB/sec
cpu
Test execution summary:
total time: 54.0469s
total number of events: 10000
total time taken by event execution: 108.0595
per-request statistics:
min: 9.03ms
avg: 10.81ms
max: 61.39ms
approx. 95 percentile: 14.87ms
Threads fairness:
events (avg/stddev): 5000.0000/87.00
execution time (avg/stddev): 54.0297/0.00
fileio
Operations performed: 68153 Read, 45435 Write, 145280 Other = 258868
Total Read 1.0399Gb Written 709.92Mb
Total transferred 1.7332Gb (5.916Mb/sec)
378.62 Requests/sec executed
Test execution summary:
total time: 300.0045s
total number of events: 113588
total time taken by event execution: 177.2314
per-request statistics:
min: 0.01ms
avg: 1.56ms
max: 579.66ms
approx. 95 percentile: 13.10ms
Threads fairness:
events (avg/stddev): 113588.0000/0.00
execution time (avg/stddev): 177.2314/0.00
memory
一直报错,测试不出来。
threads
Test execution summary:
total time: 16.0377s
total number of events: 10000
total time taken by event execution: 32.0421
per-request statistics:
min: 1.19ms
avg: 3.20ms
max: 38.39ms
approx. 95 percentile: 5.74ms
Threads fairness:
events (avg/stddev): 5000.0000/15.00
execution time (avg/stddev): 16.0210/0.00
Test execution summary:
total time: 0.3023s
total number of events: 2
total time taken by event execution: 0.5990
per-request statistics:
min: 297.52ms
avg: 299.50ms
max: 301.47ms
approx. 95 percentile: 10000000.00ms
Threads fairness:
events (avg/stddev): 1.0000/0.00
execution time (avg/stddev): 0.2995/0.00
nginx
Concurrency Level: 5000
Time taken for tests: 41.758 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 0
Total transferred: 890350000 bytes
HTML transferred: 884250000 bytes
Requests per second: 1197.38 [#/sec] (mean)
Time per request: 4175.799 [ms] (mean)
Time per request: 0.835 [ms] (mean, across all concurrent requests)
Transfer rate: 20821.94 [Kbytes/sec] received
vbox on lvm
基本同vbox on lvm,不过使用vdi作为存储。和vbox测试相比,内部系统换为主系统同样的debian。
hdparm
Timing cached reads: 9152 MB in 1.99 seconds = 4598.80 MB/sec
Timing buffered disk reads: 352 MB in 3.00 seconds = 117.16 MB/sec
fileio
Operations performed: 151020 Read, 100680 Write, 322060 Other = 573760
Total Read 2.3044Gb Written 1.5363Gb
Total transferred 3.8406Gb (13.109Mb/sec)
839.00 Requests/sec executed
Test execution summary:
total time: 300.0011s
total number of events: 251700
total time taken by event execution: 60.6296
per-request statistics:
min: 0.01ms
avg: 0.24ms
max: 106.94ms
approx. 95 percentile: 0.26ms
Threads fairness:
events (avg/stddev): 251700.0000/0.00
execution time (avg/stddev): 60.6296/0.00
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
public class Singleton {
}
/*
* 懒汉模式。注意,getInstance如果在多线程环境中调用,需要加上synchronized,否则存在线程不安全问题
*/
class LazySingleton
这个月公司安排我一个人做iOS客户端开发,由于急着用,我先发布一个版本,由于第一次发布iOS应用,期间出了不少问题,记录于此。
1、使用Application Loader 发布时报错:Communication error.please use diagnostic mode to check connectivity.you need to have outbound acc
/*
2013年3月15日15:16:24
malloc 就memory(内存) allocate(分配)的缩写
本程序没有实际含义,只是理解使用
*/
# include <stdio.h>
# include <malloc.h>
int main(void)
{
int i = 5; //分配了4个字节 静态分配
int * p
http://wiki.sdn.sap.com/wiki/display/BOBJ/Optimize+query+with+Query+Stripping+in+Web+Intelligence
and a very straightfoward video
http://www.sdn.sap.com/irj/scn/events?rid=/library/uuid/40ec3a0c-936