Home:ALL Converter>how many octets are read from the cache?

how many octets are read from the cache?

Ask Time:2012-09-23T01:35:33         Author:Mathieu Mahé

Json Formatter

I'm trying to do a simple benchmark to know how many octets are read from the cache in each page of my Rails site. I'm talking about the data retrieve from Rails.cache.

I would like to display something like 123Ko/145Ko at the bottom of my pages.

Does a gem exist to perform this task or perhaps is there something included in the ruby standard library?

Author:Mathieu Mahé,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12546149/how-many-octets-are-read-from-the-cache
yy