aronlin
aronlin
你好,我看了WebBench的代码,发现父进程在fork子进程后,只是让子进程sleep了一秒,然后就运行子进程。如果client的数量比较大的话,可能在1s内有的子进程还没有fork出来,前面的子进程就已经运行了,这样会导致测试的并发进程数和输入的参数不一致,不知道我的想法有没有错误。
 在install的时候提示没有webbench1这个文件,是不是将这个文件删除了,但是没有及时更新Makefile?
1. optimize mset method, reduce lock count 2. add mremove method
If we pass an invalid pointer to _test_free() function, this function will be crashed. So I update this function, add some checking code. Therefore, cmockery can test cases that free...
In many cases, we need to check remote server status, such as cpu usage percentage, memory usage percentage. I hope this project add this feature. thanks
In the function sdsIncrLen, I think the statement "assert(sh->free >= 0) " is redundant, because "assert(sh->free >= incr)" makes sure this situation would not happen. void sdsIncrLen(sds s, int incr)...
I find that almost in every function, you write "struct sdshdr _sh = (void_)(s - sizeof *sh);" to get the address of sdshdr, I wonder why don't you make it...