Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9215615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:14:35+00:00 2026-06-18T02:14:35+00:00

According to the Redis benchmark s , Redis can perform 100’000 SET operations/s, and

  • 0

According to the Redis benchmarks , Redis can perform 100’000 SET operations/s, and 80’000 GET operations/s. Redis being an in-memory DB, this seems surprising because typically one would expect that memory writes are somewhat slower than reads, e.g. considering that SETs need to allocate memory prior to being able to write a value.

Can someone explain why SET is faster than GET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:14:37+00:00Added an answer on June 18, 2026 at 2:14 am

    Actually this is only an effect that by default you measure more I/O than the actual command execution time. If you start enabling pipelining in the benchmark, it is a bit more the measure of the actual command performance, and the numbers will change:

    $ redis-benchmark -q -n 1000000 -P 32 set foo bar
    set foo bar: 338964.03
    $ redis-benchmark -q -n 1000000 -P 32 get foo
    get foo: 432713.09 requests per second
    

    Now GET is faster 🙂

    We should include pipelining in our benchmark doc page.

    EDIT: This is even more evident here:

    redis 127.0.0.1:6379> info commandstats
    # Commandstats
    cmdstat_get:calls=1001568,usec=221845,usec_per_call=0.22
    cmdstat_set:calls=831104,usec=498235,usec_per_call=0.60
    

    This command provides CPU time to serve the request internally, without accounting for I/O. SET is three times slower to process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this post in Recursive Descent vs. LALR , any LALR(k) can be
According to this SO post: How to check the TEMPLATE_DEBUG flag in a django
According to this post , IDEA uses Osmorc to run OSGi frameworks. It, in
According this article , generic JPA DAO(Data Access Object) is a pretty nice pattern.
According to this article Adding use strict as the first statement¹ in your JavaScript
According to this post In order to create a Scala compiler plugin, one needs
According to the author of this software : TextExpander cannot be sandboxed according to
According to an answer in this thread , semicolons are bad and should be
According to this article from Herb Sutter, one should always pick Class Specializing over
According to the MSDN Documentation for ThreadState , the Stopped state can be entered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.