#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#

(ql:quickload '(:dexador :drakma))

(defun main ()
  (format *error-output* "~2&Drakma~%") 
  (time
   (dotimes (i 30)
     (drakma:http-request "http://127.0.0.1:5000/181B.html")))

  (format *error-output* "~2&Dexador~%")
  (time
   (dotimes (i 30)
     (dex:get "http://127.0.0.1:5000/181B.html")))

  (dex:clear-connection-pool)
  (format *error-output* "~2&Dexador (without connection-pooling)~%")
  (time
   (dotimes (i 30)
     (dex:get "http://127.0.0.1:5000/181B.html" :use-connection-pool nil))))
