This topic describes the test results of persistent memory-optimized instances of ApsaraDB for Redis Enhanced Edition (Tair) in different test settings.

Workloads

The total amount of data involved in the test is 8 GB. The data distribution method is Zipfian. The performance of persistent memory-optimized instances was tested in the following scenarios:

  • Data loading: 100% write operations.
  • Workload C: 100% read operations.
  • Workload A: 50% update operations and 50% read operations.

For more information about workloads, see Core Workloads.

Note The complex commands for sets and Zsets cannot be tested in this test due to their applicable scenarios. You can customize a test for sets and Zsets based on your business scenario.

Test metrics

Test metric Description
QPS The number of read and write operations that are processed per second.
INSERT Average Latency The average latency of write operations. Unit: µs.
INSERT 99th Percentile Latency The maximum latency for the fastest 99% of write operations. Unit: µs. For example, if the 99th percentile latency is 500 µs, 99% of operations are processed in less than 500 µs.
READ Average Latency The average latency of read operations. Unit: µs.
READ 99th Percentile Latency The maximum latency for the fastest 99% of read operations. Unit: µs.
UPDATE Average Latency The average latency of update operations. Unit: µs.
UPDATE 99th Percentile Latency The maximum latency for the fastest 99% of update operations. Unit: µs.

Test result for data loading

Table 1. Strings
Value length (byte) QPS INSERT Average Latency (µs) INSERT 99th Percentile Latency (µs)
128 134,478 473 687
256 126,139 504 828
1,024 99,775 638 1,051
2,048 77,130 826 1,157
4,096 60,646 1,050 1,534
Table 2. Hashes
Number of fields in a key Value length (byte) QPS INSERT Average Latency (µs) INSERT 99th Percentile Latency (µs)
10 128 47,353 1,348 1,885
256 46,716 1,366 2,181
1,024 27,759 2,297 2,873
2,048 16,605 3,833 4,923
Table 3. Lists
Number of elements in a key Value length (byte) QPS INSERT Average Latency (µs) INSERT 99th Percentile Latency (µs)
10 128 64,950 979 1,310
256 47,157 1,348 1,752
1,024 26,719 2,386 3,457
2,048 16,714 3,811 4,751
4,096 10,129 6,279 7,891
Table 4. Sets
Number of members in a key Value length (byte) QPS INSERT Average Latency (µs) INSERT 99th Percentile Latency (µs)
10 128 63,670 1,001 1,514
256 44,707 1,427 2,129
1,024 25,375 2,513 3,239
2,048 14,318 4,451 5,619
4,096 8,378 7,608 9,095
Table 5. Sorted sets
Number of elements in a key Value length (byte) QPS INSERT Average Latency (µs) INSERT 99th Percentile Latency (µs)
10 128 40,292 1,585 2,469
256 34,168 1,869 2,569
1,024 21,347 2,989 3,905
2,048 12,868 4,956 6,255
4,096 7,864 8,101 9,599

Test result for Workload C

Table 6. Strings
Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs)
128 170,699 362 546
256 163,829 380 565
1,024 161,491 386 569
2,048 130,189 487 729
4,096 115,433 548 808
Table 7. Hashes
Number of fields in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs)
10 128 96,111 662 874
256 86,892 733 915
1,024 61,608 1,030 1,293
2,048 37,334 1,696 2,331
4,096 25,943 2,429 3,319
Table 8. Lists
Number of elements in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs)
10 128 105,296 604 889
256 97,047 655 890
1,024 66,384 955 1,192
2,048 35,796 1,769 2,461
4,096 26,314 2,392 3,271
Table 9. Sets
Number of members in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs)
10 128 97,825 651 896
256 80,954 787 970
1,024 59,924 1060 1313
2,048 33,356 1,900 2637
4,096 23,605 2677 3723
Table 10. Sorted sets
Number of elements in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs)
10 128 58,380 1,093 1,341
256 56,287 1,133 1,390
1,024 47,468 1,338 1,688
2,048 30,073 2,096 2,783
4,096 21,850 2,880 3,765

Test result for Workload A

Table 11. Strings
Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs) UPDATE Average Latency (µs) UPDATE 99th Percentile Latency (µs)
128 141,120 451 616 450 618
256 137,551 463 617 461 618
1,024 124,165 516 724 508 725
2,048 92,652 695 881 678 871
4,096 78,994 819 1,042 791 1,024
Table 12. Hashes
Number of fields in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs) UPDATE Average Latency (µs) UPDATE 99th Percentile Latency (µs)
10 128 99,495 646 831 633 820
256 88,235 731 985 712 966
1,024 72,013 892 1,159 863 2,049
2,048 45,790 1,379 1,898 1,354 2,821
4,096 32,912 1,891 2,931 1,915 7,887
Table 13. Lists
Number of elements in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs) UPDATE Average Latency (µs) UPDATE 99th Percentile Latency (µs)
10 128 71,696 591 775 1,185 1,383
256 66,294 638 800 1,281 1,456
1,024 53,402 791 1,006 1,581 1,865
2,048 36,519 1,221 1,581 2,232 2,831
4,096 28,390 1,618 2,113 2,803 3,777
Table 14. Sets
Number of members in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs) UPDATE Average Latency (µs) UPDATE 99th Percentile Latency (µs)
10 128 66,346 640 792 1,282 1,445
256 60,010 707 993 1,415 1,957
1,024 45,359 933 1,128 1,858 2,073
2,048 29,027 1,529 2,021 2,820 4,507
4,096 21,440 2,144 2,773 3,726 5,095
Table 15. Sorted sets
Number of elements in a key Value length (byte) QPS READ Average Latency (µs) READ 99th Percentile Latency (µs) UPDATE Average Latency (µs) UPDATE 99th Percentile Latency (µs)
10 128 49,695 861 1,050 1,707 1,912
256 48,036 891 1,084 1,763 1,970
1,024 39,795 1,081 1,386 2,107 2,563
2,048 28,415 1,597 1,981 2,855 3,589
4,096 21,317 2,247 2,821 3,665 4,787