I have done simple performance test on my local machine, this is python script:
import redis import sqlite3 import time data = {} N = 100000 for i in xrange(N)
Just noticed that you did not pipeline the commit for redis. Using piplines the time reduces:
[---Testing SQLITE---]
[Total time of sql: 0.669369935989]
[---Testing REDIS---]
[Total time of redis: 2.39369487762]