Skip to content

发现1.06版本的性能比现在要好的多 #42

@wellslai

Description

@wellslai

应该是在两年前我的服务器上有一个1.06版本的rdb,然后我今天下了个最新版的rdb 然后分析统一个文件,这个rdb文件内部有一个10G以上的大key,但是性能差异非常明显,1.06版本大概只需要1分20秒左右,最新版的需要2分钟 下面是我的测试结果

--------------1.06版本的测试记录--------------

[root@GZSZL_C13_7_db-17-62 data]# date &&/root/rdb-linux -c memory -o test.csv dump.rdb && date
Thu Aug 29 14:33:35 CST 2024
Thu Aug 29 14:34:41 CST 2024
[root@GZSZL_C13_7_db-17-62 data]# /root/rdb-linux --help
Usage of /root/rdb-linux:
-c string
command for rdb: json
-n int

-no-expired
filter expired keys
-o string
output file path
-port int
listen port for web
-regex string
regex expression
-sep value
separator for flame graph
[root@GZSZL_C13_7_db-17-62 data]# md5sum /root/rdb-linux
a214208a8c578e572cd14dd251737135 /root/rdb-linux

----------最新版的测试记录----------------------------

[root@GZSZL_C13_7_db-17-62 data]# date &&/root/rdb -c memory -o test.csv dump.rdb && date
Thu Aug 29 14:35:18 CST 2024
Thu Aug 29 14:37:17 CST 2024
[root@GZSZL_C13_7_db-17-62 data]# md5sum /root/rdb
36722fe308c776b2b844e7dce0011f2b /root/rdb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions