 (def ^String s-delete (:sql t-delete))
 (def ^String s-select (:sql t-select))
 
-(def m-insert {:sql s-insert
-               :param-keys [:name :salary :dept]
-               :param-types (apply vector-of :byte (:param-types t-insert))})
-(def m-delete {:sql s-delete})
-(def m-select {:sql s-select
-               :result-types (apply vector-of :byte (:result-types t-select))})
-
 
 (deftest bench-insert-delete
   (testing "Insert and delete"

          (c/compare-perf "select-row"
            (jdbc/query db-con [s-select])
            (a/query a/fetch-rows conn s-select nil)
            (a/query a/fetch-rows conn t-select nil)
            (a/query a/fetch-rows conn m-select nil))))
      ;; bench c.j.j `:as-arrays? true` with asphalt
      (jdbc/with-db-connection [db-con db-spec]
        (i/with-connection [conn u/orig-ds]
          (c/compare-perf "select-row-as-arrays"
            (jdbc/query db-con [s-select] {:as-arrays? true})
            (a/query a/fetch-rows conn s-select nil)
            (a/query a/fetch-rows conn t-select nil)
            (a/query a/fetch-rows conn m-select nil)))))))

    [asphalt.type      :as t]))


(use-fixtures :once (c/make-bench-wrapper ["clojure.java.jdbc" "Asphalt-SQL" "Asphalt-template"]
                      {:chart-title "Clojure.java.jdbc vs Asphalt"
                       :chart-filename (format "bench-clj-%s.png" c/clojure-version-str)}))

