Разница в производительности Dockerized Redis между сервером и локальной системой - PullRequest
0 голосов
/ 15 марта 2020

Я провожу стресс-тестирование на моем сервере, результат времени ожидания для 1000 запросов в секунду составил 1 секунду , я обнаружил, что проблема с задержкой связана с redis, поэтому я проверяю производительность dokerized redis (бенчмарк) на CentOS 7 (CentOs находится на виртуальной машине VMware ЦП: 22 ядра, ОЗУ: 30 ГБ ) от

redis-benchmark -q -n 100000

Дайте мне следующие результаты:

PING_INLINE: 26420.08 requests per second
PING_BULK: 27389.76 requests per second
SET: 27144.41 requests per second
GET: 26702.27 requests per second
INCR: 27041.64 requests per second
LPUSH: 27203.48 requests per second
RPUSH: 27188.69 requests per second
LPOP: 27005.13 requests per second
RPOP: 27367.27 requests per second
SADD: 26645.35 requests per second
HSET: 26881.72 requests per second
SPOP: 27624.31 requests per second
LPUSH (needed to benchmark LRANGE): 27100.27 requests per second
LRANGE_100 (first 100 elements): 20703.93 requests per second
LRANGE_300 (first 300 elements): 11763.32 requests per second
LRANGE_500 (first 450 elements): 9627.42 requests per second
LRANGE_600 (first 600 elements): 8078.20 requests per second
MSET (10 keys): 26709.40 requests per second

Но когда я проверяю докертизированную производительность redis (тест) на моем ноутбуке с Ubuntu 19.04 ( процессор: core i3, RAM: 12GB ) по

redis-benchmark -q -n 100000

Дайте мне следующие результаты:

PING_INLINE: 117096.02 requests per second
PING_BULK: 126742.72 requests per second
SET: 119904.08 requests per second
GET: 126903.55 requests per second
INCR: 127064.80 requests per second
LPUSH: 111482.72 requests per second
RPUSH: 121359.23 requests per second
LPOP: 112994.35 requests per second
RPOP: 123152.71 requests per second
SADD: 130378.09 requests per second
HSET: 130039.02 requests per second
SPOP: 103199.18 requests per second
LPUSH (needed to benchmark LRANGE): 88809.95 requests per second
LRANGE_100 (first 100 elements): 51046.45 requests per second
LRANGE_300 (first 300 elements): 17853.96 requests per second
LRANGE_500 (first 450 elements): 12784.45 requests per second
LRANGE_600 (first 600 elements): 9744.69 requests per second
MSET (10 keys): 132802.12 requests per second

Почему результат производительности моей локальной системы намного лучше, чем у сервера, несмотря на более высокие аппаратные возможности сервера?

...