diff --git a/bench/types.exs b/bench/types.exs new file mode 100644 index 0000000..aa84955 --- /dev/null +++ b/bench/types.exs @@ -0,0 +1,7 @@ +types = ["String", "DateTime", "DateTime('UTC')", "Array(String)", "Array(Tuple(String, UInt64))"] +inputs = Map.new(types, fn type -> {type, type} end) + +Benchee.run( + %{"decode/1" => fn type -> Ch.Types.decode(type) end}, + inputs: inputs +)