libbenchmark--Xnix系统下性能测试,并发测试调度器

项目地址:

http://code.google.com/p/libbenchmark

 

目前我把这个放到google上了,但担心访问它不够稳定,

比如得到svn check out密码的时候就必须翻GFW,

谁有好的放代码的地方,请告诉我一声,谢了.

 

编译出来后有两部分,一个是命令行工具,一个是动态库

 

  • benchmark(command line):


It could exec a command in multi-process(num->P) && multi-thread(num->T),

so you get P*T instance concurrently.It's used to be a performance generator to do performance test.

这是一个命令行工具,它可以在多进程多线程内执行命令,从而实现并行的执行,这个常常用来做并发测试或者性能测试, 比如它配合curl或者wget之类的http工具就能实现对http服务器的性能测试. 它是一个调度程序,不是具体执行者,curl或者wget之类的工具才是.

 

  • libbenchmark:


It's a share object of benchmark.

You could use the function benchmark() to do the same thing like the command line benchmark.

这是benchmark的动态库,可以通过使用benchmark方法实现你的函数并发调用,你要注意你的代码是否线程安全.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章