          (vec))))
 
 (comment
-  (benchmark :stats   [:pack-time]
-             :methods [:mikron :protobuf :nippy]
-             :schema  ::benchmark.schema/snapshot2)
+  (benchmark :stats   [:size]
+             ;:methods [:mikron :protobuf :nippy]
+             :schema  ::benchmark.schema/snapshot)
   nil)

#?(:clj ;; colfer
   (defmethod pack :colfer ^bytes [_ schema data]
     (let [count (case schema
                   ::benchmark.schema/quartet   ^Quartet data
                   ::benchmark.schema/snapshot  ^Snapshot data
                   ::benchmark.schema/snapshot2 ^Snapshot data)
                 colfer-buffer 0])
     (let [count (.marshal (case schema
                             ::benchmark.schema/quartet   ^Quartet data
                             ::benchmark.schema/snapshot  ^Snapshot data
                             ::benchmark.schema/snapshot2 ^Snapshot data)
                           colfer-buffer 0)]
       (Arrays/copyOf colfer-buffer count))))

;; Unpackers



#?(:clj ;; colfer
   (defmethod unpack :colfer [_ schema ^bytes binary]
     (case schema
       ::benchmark.schema/quartet   (.unmarshal (Quartet.) binary 0)
       ::benchmark.schema/snapshot  (.unmarshal (Snapshot.) binary 0)
       ::benchmark.schema/snapshot2 (.unmarshal (Snapshot.) binary 0))))

;; Post process

