选择httpsqs的原因是,轻量,高效,整个流程也在掌控之中,所以就没有选择比较成熟的Gearman。。

好了,看数据把:

100k times test about httpsqs

| method | ab | php | php with extension | php reuse object | shell | lua | |—|—|—|—|—| | GET(times/sec) | 10927.82 | 2861.93 | 3605.92 | 5131.06 | 83.33 | 3903.2 | | POST(times/sec) | 7578.21 | 2686.34 | 3216.49 | 4219.84 | too slow | 4000 |

test script https://github.com/Barbery/blog/tree/master/httpsqs_benchmark