0. Background
System Info
.. root@p1gd0g
.PLTJ. OS: CentOS 6.9 Final
<><><><> Kernel: x86_64 Linux 2.6.32-696.el6.x86_64
KKSSV' 4KKK LJ KKKL.'VSSKK Uptime: 31d 55m
KKV' 4KKKKK LJ KKKKAL 'VKK Packages: 773
V' ' 'VKKKK LJ KKKKV' ' 'V Shell: bash 4.1.2
.4MA.' 'VKK LJ KKV' '.4Mb. Resolution: No X Server
. KKKKKA.' 'V LJ V' '.4KKKKK . WM: Not Found
.4D KKKKKKKA.'' LJ ''.4KKKKKKK FA. GTK Theme: Slider [GTK2], [GTK3]
<QDD ++++++++++++ ++++++++++++ GFD> Disk: 13G / 193G (8%)
'VD KKKKKKKK'.. LJ ..'KKKKKKKK FV CPU: Intel Core (Haswell, IBRS) @ 2x 2.397GHz
' VKKKKK'. .4 LJ K. .'KKKKKV ' RAM: 2069MiB / 3832MiB
'VK'. .4KK LJ KKA. .'KV'
A. . .4KKKK LJ KKKKA. . .4
KKA. 'KKKKK LJ KKKKK' .4KK
KKSSA. VKKK LJ KKKV .4SSKK
<><><><>
'MKKM'
''
Pika Version
-----------Pika server 2.3.6 ----------
1. get
vs. mget
cmd | RPS(9 bytes) | RPS(18 bytes) | RPS(36 bytes) | RPS(72 bytes) | RPS(144 bytes) | RPS(288 bytes) | RPS(576 bytes) | RPS(1152 bytes) | RPS(2304 bytes) |
---|---|---|---|---|---|---|---|---|---|
get |
56561 | 54674 | 55096 | 53191 | 55432 | 57971 | 57903 | 57603 | 59031 |
mget (1) |
57870 | 51334 | 55005 | 52742 | 54288 | 53533 | 51519 | 57240 | 56338 |
mget (2) |
59488 | 61652 | 49701 | 58651 | 58072 | 55340 | 53304 | 61012 | 54854 |
mget (4) |
54704 | 57372 | 55897 | 60132 | 52083 | 49358 | 51308 | 55309 | 52056 |
mget (8) |
56274 | 51786 | 54555 | 60024 | 52328 | 59594 | 58685 | 59523 | 59101 |
mget (16) |
56369 | 56179 | 52137 | 57438 | 57045 | 64557 | 48804 | 55309 | 55991 |
mget (32) |
60132 | 54141 | 53937 | 61576 | 59276 | 56689 | 47801 | 51387 | 51572 |
mget (64) |
51894 | 53248 | 52631 | 56947 | 50025 | 53022 | 52328 | 57045 | 55991 |
mget (128) |
56657 | 53106 | 46274 | 52910 | 50968 | 56850 | 51786 | 58823 | 54525 |
mget (256) |
52659 | 50607 | 49825 | 51894 | 52798 | 56721 | 53248 | 50200 | 47573 |
mget (512) |
44072 | 42140 | 47778 | 46728 | 44964 | 46403 | 48332 | 47036 | 47483 |
mget (1024) |
40000 | 38138 | 42571 | 46860 | 39447 | 40518 | 39354 | 37119 | 39777 |
2. set
vs. mset
cmd | RPS |
---|---|
set |
54229 |
mset (1) |
52798 |
mset (2) |
50454 |
mset (4) |
52548 |
mset (8) |
52603 |
mset (16) |
56274 |
mset (32) |
52356 |
mset (64) |
48426 |
mset (128) |
48146 |
mset (256) |
48402 |
mset (512) |
33829 |
mset (1024) |
28066 |
来源:oschina
链接:https://my.oschina.net/p1gd0g/blog/3274456