python - Redis performance -


i'm learning redis , trying measure time performance. in setup set 5 000 000 keys , measured time each unique operation.

i have got following plot (x-label number of operations (set), y-label time in milliseconds):

enter image description here

i'm noticing performance of redis going extremely down. have measured performance 1 000 000 keys:

enter image description here

i can monitor constant areas bad performance. anyway operating time goes down after interval of time.

my question if has done similar researches in area of redis performance, he/she discuss these results. me interesting , important understand reason server such "time jumping" , how can improve performance.

if needs python-code:

def setkeyvalue(key, value):     assert (key != none), "please, key"     redis_server.set(key, value);  def loopkeyvalues(number):     timeuse = []     start_tot = time.time()     x in range(number):         start = time.time()         #sethashkeyvalue('mydata',x, x**2)         setkeyvalue(x, x**2)         end = time. time()         timeuse.append(end-start)     end_tot = time.time()     time_total = end_tot - start_tot     plt.plot(timeuse)     plt.ylabel("time")     plt.show()     return time_total;  


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -