-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
incorrect benchmark ? #25
Comments
I've run the benchmark in my computers and our servers, and the results are similar. However there are many factors that can impact the results, so it's hard to say why yours are different. I just submit a commit to print system info as well when running benchmark, and here's the result on my laptop(MacBook Pro, Retina, 15-inch, Late 2013):
Could you pull the latest commit and run the benchmark again? |
I'm also seeing great results: nodejs: 0.10.25
|
My becnhmark updated:
My OS is Linux Mint. If I run the same benchmark more than once I can see different values and in general ioredis and node_redis have similar performance in each suite (more or less) |
Which redis-server version are you using? Is Redis running on the same machine as the client? |
redis server is in the same machine and the version is 2.8.4 |
Node.js v0.12.2, early 2009 MacBook Pro, redis-server 3.0.0 running on the same machine: macbook:ioredis luigi$ npm run bench
> ioredis@1.2.0 bench /Users/luigi/Desktop/repos/ioredis
> matcha benchmarks/*.js
child_process: customFds option is deprecated, use stdio instead.
==========================
ioredis: 1.2.0
node_redis: 0.12.1
CPU: 2
OS: darwin x64
==========================
simple set
23,289 op/s » ioredis
27,762 op/s » node_redis
simple get
22,474 op/s » ioredis
26,978 op/s » node_redis
simple get with pipeline
4,312 op/s » ioredis
2,758 op/s » node_redis
lrange 100
18,529 op/s » ioredis
22,116 op/s » node_redis
Suites: 4
Benches: 8
Elapsed: 67,757.50 ms |
|
I added a link to this issue to the benchmark section in README, and will leave this issue open util we know more about the reason of the difference of results. |
redis-cli 2.8.17
|
Updated for mac / iojs 2.2.1. Redis 3.0.1
|
你好,我本地机器是win7系统,使用npm install ioredis命令下载ioredis到了本地,我本地有redis-server,版本为2.6.12,请问怎样跑这个ioredis/benchmarks/single_node.js文件?直接在ioredis/benchmarks/目录下输入 node single_node.js会报错:
|
npm run bench. 文档里有写 https://github.com/luin/ioredis#benchmark |
输入npm run bench后回车,依然不成功,控制打印如下:
'matcha' 不是内部或外部命令,也不是可运行的程序 npm ERR! Windows_NT 6.1.7601 npm ERR! Please include the following file with any support request: 然后我npm i matcha后,再次输入npm run bench后回车,还是不成功,控制打印如下:
child_process: customFds option is deprecated, use stdio instead. npm ERR! Windows_NT 6.1.7601 npm ERR! Please include the following file with any support request: 这是肿么了 |
npm run 时会设置系统环境变量保证 devdeps 里面的依赖会作为全局依赖。Windows 会有问题。可以直接用 npm i -g matcha |
直接执行 matcha single_node.js 吧 |
node 4.2.1: version: pull-request #184
|
Here are results with Mid 2014 MBPro 2.5 GHz i7, 16GB RAM, NVIDIA GeForce GT 750M 2GB. Running against Redis 3.0.0 on the same machine. Any special configs needed for Redis to optimize it for ioredis? > matcha benchmarks/*.js (node) child_process: options.customFds option is deprecated. Use options.stdio instead. ========================== ioredis: 1.14.0 node_redis: 0.12.1 CPU: 8 OS: darwin x64 node version: v5.3.0 current commit: 581524d ========================== simple set 34,464 op/s » ioredis 49,481 op/s » node_redis simple get 33,857 op/s » ioredis 40,399 op/s » node_redis simple set 36,601 op/s » ioredis 52,078 op/s » node_redis simple get 41,298 op/s » ioredis 51,527 op/s » node_redis simple get with pipeline 2,769 op/s » ioredis 9,503 op/s » node_redis lrange 100 34,479 op/s » ioredis 65,115 op/s » node_redis publish 40,704 op/s » ioredis 49,343 op/s » node_redis subscribe 30,397 op/s » ioredis 40,692 op/s » node_redis Suites: 6 Benches: 12 Elapsed: 96,849.92 ms |
I'm running Redis via Docker (something very close to Redis server v=3.0.7
|
Hi,
I have ran the benchmarks in my local machine with nodejs 0.12.2, node_redis 0.12.1 and the master branch of ioredis and I have got the following results:
I have ran the benchmark with and without hiredis having similar performance.
Those results show better or equal performance between node_redis and ioredis. However, in the documentation, the performance of ioredis is quite better than node_redis. Any idea?
The text was updated successfully, but these errors were encountered: