{"id":8584,"date":"2026-05-28T10:01:54","date_gmt":"2026-05-28T08:01:54","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8584"},"modified":"2026-06-09T07:21:24","modified_gmt":"2026-06-09T05:21:24","slug":"how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/","title":{"rendered":"How to Check Redis Object Cache Performance Using &#8220;redis-benchmark&#8221;"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Redis is a high-performance in-memory database commonly used as an object cache for applications such as WordPress, Magento, Laravel, and other dynamic websites. When Redis is configured as an object cache, it helps reduce database load and improve application response times by storing frequently requested data in memory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To ensure Redis is operating efficiently, you can use the <code>redis-benchmark<\/code> utility to measure its performance and evaluate how well it handles requests under load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Why_Test_Redis_Performance\" >Why Test Redis Performance?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#What_Is_redis-benchmark\" >What Is redis-benchmark?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Basic_Usage_of_redis-benchmark\" >Basic Usage of redis-benchmark<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Testing_Specific_Operations\" >Testing Specific Operations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Adjusting_Test_Parameters\" >Adjusting Test Parameters<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Specify_the_Number_of_Requests\" >Specify the Number of Requests<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Adjust_Concurrent_Connections\" >Adjust Concurrent Connections<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Combine_Multiple_Parameters\" >Combine Multiple Parameters<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Understanding_the_Results\" >Understanding the Results<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Requests_Per_Second\" >Requests Per Second<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Latency\" >Latency<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Percentiles\" >Percentiles<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Best_Practices_for_Accurate_Testing\" >Best Practices for Accurate Testing<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Test_During_Low-Traffic_Periods\" >Test During Low-Traffic Periods<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Compare_Before_and_After_Changes\" >Compare Before and After Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Monitor_System_Resources\" >Monitor System Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Use_Realistic_Workloads\" >Use Realistic Workloads<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-test-redis-object-cache-performance-using-the-redis-benchmark-command\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Test_Redis_Performance\"><\/span>Why Test Redis Performance?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-2328200039\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Performance testing helps you verify that Redis is capable of handling your application&#8217;s workload.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Benefits of testing include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Identifying performance bottlenecks<\/li>\n\n\n\n<li>Measuring server response times<\/li>\n\n\n\n<li>Verifying Redis configuration changes<\/li>\n\n\n\n<li>Comparing performance before and after upgrades<\/li>\n\n\n\n<li>Evaluating server capacity under load<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Regular testing is particularly useful on busy websites where Redis plays a critical role in reducing database queries and improving page load times.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Is_redis-benchmark\"><\/span>What Is redis-benchmark?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>redis-benchmark<\/code> is a command-line utility included with Redis installations. It generates a configurable number of requests and measures how quickly Redis can process them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The tool can simulate various Redis commands, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET<\/li>\n\n\n\n<li>SET<\/li>\n\n\n\n<li>INCR<\/li>\n\n\n\n<li>LPUSH<\/li>\n\n\n\n<li>LRANGE<\/li>\n\n\n\n<li>PING<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The results help determine the number of operations Redis can process per second and the average response time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basic_Usage_of_redis-benchmark\"><\/span>Basic Usage of redis-benchmark<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To perform a standard benchmark against the local Redis instance, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command executes a series of tests using Redis default settings and displays performance statistics for common operations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testing_Specific_Operations\"><\/span>Testing Specific Operations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can limit testing to specific Redis commands using the <code>-t<\/code> parameter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, to test only SET operations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -t set\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To test only GET operations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -t get\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To test multiple operations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -t get,set\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This approach is useful when evaluating workloads that closely match your application&#8217;s behavior.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Adjusting_Test_Parameters\"><\/span>Adjusting Test Parameters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Specify_the_Number_of_Requests\"><\/span>Specify the Number of Requests<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default, redis-benchmark performs 100,000 requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To increase the number of operations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -n 1000000\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command performs one million requests.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Adjust_Concurrent_Connections\"><\/span>Adjust Concurrent Connections<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To simulate multiple clients connecting simultaneously:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -c 100\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This example uses 100 concurrent connections.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Combine_Multiple_Parameters\"><\/span>Combine Multiple Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -t get,set -n 500000 -c 50\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command performs 500,000 GET and SET operations using 50 concurrent clients.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Understanding_the_Results\"><\/span>Understanding the Results<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After the benchmark completes, Redis displays information similar to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SET: 120000 requests per second\nGET: 150000 requests per second\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Key metrics include:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Requests_Per_Second\"><\/span>Requests Per Second<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Indicates how many operations Redis can process each second.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Higher values generally indicate better performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Latency\"><\/span>Latency<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Latency measures the time required to complete a request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lower latency values are preferable because they indicate faster responses.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Percentiles\"><\/span>Percentiles<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some benchmark results include percentile information, showing how quickly most requests are completed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>95% &lt;= 1 ms\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This means that 95% of requests completed within 1 millisecond.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Best_Practices_for_Accurate_Testing\"><\/span>Best Practices for Accurate Testing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Test_During_Low-Traffic_Periods\"><\/span>Test During Low-Traffic Periods<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Running benchmarks on a busy production server may affect users and produce inconsistent results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Compare_Before_and_After_Changes\"><\/span>Compare Before and After Changes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run benchmarks before and after:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Redis upgrades<\/li>\n\n\n\n<li>Server migrations<\/li>\n\n\n\n<li>Configuration changes<\/li>\n\n\n\n<li>Hardware upgrades<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This helps verify whether performance improved.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Monitor_System_Resources\"><\/span>Monitor System Resources<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">While testing, monitor:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CPU usage<\/li>\n\n\n\n<li>Memory consumption<\/li>\n\n\n\n<li>Disk activity<\/li>\n\n\n\n<li>Network utilization<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Tools such as <code>htop<\/code>, <code>top<\/code>, and <code>vmstat<\/code> can help identify system bottlenecks.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_Realistic_Workloads\"><\/span>Use Realistic Workloads<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Configure the benchmark to resemble your application&#8217;s actual usage patterns whenever possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>redis-benchmark<\/code> utility provides a simple and effective way to measure Redis performance and validate that your object cache is operating efficiently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A typical benchmarking workflow includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Running a baseline benchmark<\/li>\n\n\n\n<li>Testing specific Redis operations<\/li>\n\n\n\n<li>Simulating realistic concurrency levels<\/li>\n\n\n\n<li>Monitoring server resources during testing<\/li>\n\n\n\n<li>Comparing results after configuration or infrastructure changes<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Regular Redis performance testing helps ensure your caching layer continues to deliver fast response times and optimal application performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[47],"manual_kb_tag":[728,730,4452,4720,7130,7131,7132,7133,7134,633],"class_list":["post-8584","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-redis","manual_kb_tag-redis","manual_kb_tag-in-memory-database","manual_kb_tag-performance-testing","manual_kb_tag-redis-performance","manual_kb_tag-redis-benchmark","manual_kb_tag-caching-performance","manual_kb_tag-benchmark-tool","manual_kb_tag-requests-per-second","manual_kb_tag-latency-measurement","manual_kb_tag-object-cache"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8584\/revisions"}],"predecessor-version":[{"id":8585,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8584\/revisions\/8585"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=8584"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8584"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=8584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}