(c :initarg :c
:type float)))
-(defun run-benchmarks (&key (report-stream *standard-output*) (sexp-report-stream nil) (count 1000))
+(defun run-benchmarks (&key (report-stream *standard-output*) (sexp-report-stream nil) (count 10000))
(let ((specs (read-specs))
(*report-stream* report-stream)
(*sexp-report-stream* sexp-report-stream))
(defun do-benchmarks-for-backend (db-type spec count)
(test-connect-to-database db-type spec)
+ (test-initialise-database)
(write-report-banner "Benchmarks" db-type *report-stream*)
(create-view-from-class 'bench)
(drop-view-from-class 'bench))
(defun benchmark-init ()
- (dotimes (i 100)
+ (dotimes (i 10)
(execute-command "INSERT INTO BENCH (A,B,C) VALUES (123,'A Medium size string',3.14159)")))
(defun benchmark-selects (n)
(time
(dotimes (i n)
(query "SELECT * FROM BENCH" :field-names nil)))
+ (format *report-stream* "~&~%*** OBJECT QUERY ***~%")
+ (time
+ (dotimes (i n)
+ (mapcar #'(lambda (ea) (slot-value ea 'address)) (select 'employee-address :flatp t))))
))