I benched RustDb vs Sqlite!

The result of cargo test --release -- --show-output

---- bench::sqlite_test stdout ----
sqllite test took 831 micro-seconds

---- bench::rustdb_test stdout ----
rustdb test took 683 micro-seconds

Bench code here:

The test is to add up the age of 8192 people ( well actually they are all "Alice" age 1000 years! ).

RustDb doesn't have aggregate functions like SUM, so it has to do the aggregate in an interpreted loop, like this:

DECLARE @total int FOR @total = @total + age FROM test.users BEGIN END

so all-in-all the result is not bad, but should be taken with heapfuls of salt!!!

1 Like