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

  • SEARCH
  • Home
  • 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 6105767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:00:23+00:00 2026-05-23T14:00:23+00:00

I would think the the redis test would be at least equally as fast

  • 0

I would think the the redis test would be at least equally as fast as doing a hash lookup in an object.

An object looking up a value from a hash

ruby-1.9.2-p180 :022 > quick(1000) {@p.lookup(:summary_header)}   #=> nil
Rehearsal ------------------------------------
   0.000000   0.010000   0.010000 (  0.006522)
--------------------------- total: 0.010000sec

       user     system      total        real
   0.010000   0.000000   0.010000 (  0.006701)

vs a simple Redis lookup

ruby-1.9.2-p180 :023 > quick(1000) {r.get("header")}   #=> nil
Rehearsal ------------------------------------
   0.020000   0.020000   0.040000 (  0.088880)
--------------------------- total: 0.040000sec

       user     system      total        real
   0.030000   0.020000   0.050000 (  0.085839)
  • 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-05-23T14:00:24+00:00Added an answer on May 23, 2026 at 2:00 pm

    Redis is fast, but it can’t be as fast as a direct memory access. It requires constructing a request, posting it, waiting for a response, decoding that response, and returning that value to your application. Redis runs as a separate process, so you will have to pay this price for inter-process communication even when it is located on the same machine.

    That it is only twelve times slower by your benchmark is still impressive.

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

Sidebar

Related Questions

You would think that launching a bat file from Java would be an easy
From what I've read from Herb Sutter and others you would think that volatile
I was wondering what you would think about using jsperf.com Chrome test results as
I would think this is a Ruby difference, but I'm using the same Ruby
I have a pretty straightforward (one would think) task. Pass a value to a
My problem is one that you would think is quite common, but I haven't
This should be pretty straightforward I would think. I have this string: [quote=Joe Johnson|1]Hi![/quote]
Sorry if this is duplicate,I would think it would be but couldn't find anything.
I am struggling trying to perform what I would think would be a relatively
How can I force validation when user clicks button? One would think this should

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.