Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

比redis还慢啊,白折腾了? #10

Open
xww opened this issue Jul 27, 2019 · 1 comment
Open

比redis还慢啊,白折腾了? #10

xww opened this issue Jul 27, 2019 · 1 comment

Comments

@xww
Copy link

xww commented Jul 27, 2019

vire编译:
$ git clone https://github.com/vipshop/vire.git
$ cd vire
$ autoreconf -fvi
$ ./configure
$ make
启动:
src/vire -c conf/vire.conf -o log -T 50
测试:
src/redis-benchmark -p 7379 -t set,get -n 300000 -q
结果:
SET: 68981.38 requests per second
GET: 69028.99 requests per second

2.redis编译
切换到redis-3.2分支
make
启动:
./redis-server
测试:
src/redis-benchmark -p 6379 -t set,get -n 300000 -q
结果:
SET: 72957.20 requests per second
GET: 72992.70 requests per second

在三个机器上测试都是这样的结果,测试数据有改变,但是趋势就是vire始终比redis慢一些,无论给vire多少个cpu都不行。

是不是测试方法有问题?

@yf2008
Copy link

yf2008 commented May 17, 2020

多线程就是有锁啊,redis 6 的多线程都是哪些网络IO和不需要实时业务的长尾的命令实现了多线程。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants