Permalink
Browse files

Misc changes...

  • Loading branch information...
1 parent 36a0e42 commit 0020f2fe1c6701481bc881ba364e03c8fae6ad86 @lethain committed Aug 22, 2010
Showing with 13 additions and 13 deletions.
  1. +6 −6 hash_memory.py
  2. +4 −4 list_memory.py
  3. +2 −2 sorted_set_memory.py
  4. +1 −1 string_memory.py
View
@@ -3,8 +3,8 @@
import time
r = redis.Redis(host='localhost', port=6379, db=0)
-for num_hashes in (100, 1000,10000):
- for hash_size in (100, 1000,10000):
+for num_hashes in (10000,):
+ for hash_size in (1000,):
r.flushall()
time.sleep(1.0)
initial_size = r.dbsize()
@@ -17,8 +17,8 @@
final_size = r.dbsize()
final_info = r.info()
- print "For %s sets with %s values." % (num_sets, set_size)
- print "Keys: %s => %s" % (initial_size, final_size)
- print "Memory: %s => %s" % (initial_info['used_memory_human'],
+ print "For %s sets with %s values." % (num_hashes, hash_size)
+ print "Keys: %s => %s" % (initial_size, final_size)
+ print "Memory: %s => %s" % (initial_info['used_memory_human'],
final_info['used_memory_human'])
- r.flushall()
+ r.flushall()
View
@@ -17,8 +17,8 @@
final_size = r.dbsize()
final_info = r.info()
- print "For %s lists with %s values." % (num_array, array_size)
- print "Keys: %s => %s" % (initial_size, final_size)
- print "Memory: %s => %s" % (initial_info['used_memory_human'],
+ print "For %s lists with %s values." % (num_array, array_size)
+ print "Keys: %s => %s" % (initial_size, final_size)
+ print "Memory: %s => %s" % (initial_info['used_memory_human'],
final_info['used_memory_human'])
- r.flushall()
+ r.flushall()
View
@@ -6,8 +6,8 @@
# number of sets
-for num_sets in (100, 1000,10000):
- for set_size in (100, 1000,10000):
+for num_sets in (10000,):
+ for set_size in (1000,):
r.flushall()
time.sleep(1.0)
initial_size = r.dbsize()
View
@@ -3,7 +3,7 @@
import time
r = redis.Redis(host='localhost', port=6379, db=0)
-for num_strings in (100, 1000,10000, 100000, 1000000):
+for num_strings in (10000000,):
r.flushall()
time.sleep(1.0)
initial_size = r.dbsize()

0 comments on commit 0020f2f

Please sign in to comment.