json,serialize,msgpack比较
速度 在redis中存入同样的压缩数据,取操作执行两个操作: 1 从redis中取 2 解压 3 统一json压缩后放出 ab测试: [yejianfeng@openstack ~/httpd/usr/bin]$ ./ab -n 10000 -c 10 'http://10.16.15.118:7701/location/testGet?type=json' Requests per second: 265.11 [#/sec] (mean) Requests per second: 267.58 [#/sec] (mean) Requests per second: 275.48 [#/sec] (mean) Requests per second: 263.11 [#/sec] (mean) Requests per second: 264.99 [#/sec] (mean) [yejianfeng@openstack ~/httpd/usr/bin]$ ./ab -n 10000 -c 10 'http://10.16.15.118:7701/location/testGet...
