Database hello_world contains table world with 10000 records and two columns id, randomnumber. Here we are fetching 5 records in a loop. Using Tungsten 100 loops took about 22 on my VPS, whereas similar code using CL-POSTGRES runs 100000 loops in 40 second on the same machine.
CL-POSTGRES code uses get-a-random-record defined like this:
(defun get-a-random-record (id)
(declare (fixnum id))