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)
SQLite is very fast, and you're only requiring one IO action (on the commit
). Redis is doing significantly more IO since it's over the network. A more apples-to-apples comparison would involve a relational database accessed over a network (like MySQL or PostgreSQL).
You should also keep in mind that SQLite has been around for a long time and is very highly optimized. It's limited by ACID compliance, but you can actually turn that off (as some NoSQL solutions do), and get it even faster.