(1) test environment
CPU
Dualcore e5800 X2 3.2g
Memory
4G
OS
SuSE Linux Enterprise Server 11 (x86_64)
Client
Jedis
(2) Insert a single value
Insert:
Key = (1000000-10000051) vaue = (1000000-10000051)
Client thread |
Insert volume |
Time consumed (MS) |
TPS |
Memory (byte) |
Record capacity |
1 |
1233104 |
1030750 |
2 K |
91.96 M, 96422000 |
78 byte |
50 |
10000051 |
182180 |
5.45 million |
882.31 M, 925165648 |
92 bytes |
(3) List insertion (50 threads inserted)
Key = (1000000-5000000) List <vaue> = (1000000-5000000), list. size = 500
Insert lists:
Key = userid, value = List <userid>
List length = 1, memory 451 MB;
When the length of a list of 28 W users is changed to 500, the memory usage is 1.25 GB. The cost of increasing the list is 30 mb/1 W, and the TPS is 5.5 w/s;
When the list length of 3000 users is changed to 10000, the memory usage is 1.35 GB. The cost of the List length is 0.45 mb. the user is 4.5 GB/5.5, And the TPS is w/s;