I have measured the time taken by various operations for 3 pure-Python database modules (buzhug, KirbyBase and Gadfly) and compared them with SQLite

The tests are those described on the SQLite comparisons pages, which compares performance of SQLite to that of MySQL and PostGreSQL

The tests

Here are the tests :

The tests have been made on a Windows XP machine, with Python 2.4.1

Versions : buzhug 0.3, KirbyBase 1.9, gadfly 1.0.0, PySQLite 2.2.2 installed with the Windows binary for Python 2.4

Results

Here are the results

1000 records

           buzhug    kirbybase        gadfly           sqlite
                      index     no index    index   no index  index
create     0.31       0.12        0.59      1.87    0.33      0.41
select1    0.20       4.02        3.96      4.13    0.07      0.18
select2    0.80       4.08        -         -       0.17      0.16
delete1    0.04       0.06        -         -       0.26      0.28
delete2    0.16       0.10        0.07      0.07    0.22      0.17
update1    0.48       2.77        5.22      5.48    0.34      0.21
update2    0.74      25.19       35.39      0.83    0.68      0.41

25000 records

             buzhug   kirbybase   gadfly (1)          sqlite
                                no index         no index   index
create       6.54       2.49       19.50         1.62       2.49
select1      3.68      97.19       74.71         2.29       2.30
select2     18.99      96.42        -            3.64       3.69
delete1      0.77       1.18        -            1.04       1.20
delete2      2.61       1.79        1.02         0.44       0.62
update1      1.30      11.33      110.78         1.72       0.46
update2      0.77      22.51      975.67         9.35       0.46

(1) not tested with index, creation time is +INF

Conclusions

buzhug is usually much faster than KirbyBase and Gadfly for selection of records. On the 25,000 item base, the average is 10 times faster than KirbyBase and 275 times faster than Gadlfy. KirbyBase is faster for insertion of new records (because all data are stored in a single file) and for the delete2 test. Gadfly is only faster for the delete2 test

SQLite is faster than buzhug on nearly all operations. On the 25,000 item base, the average on all operations is 2,7 times faster (with or without index). buzhug is only faster on delete1