From 6ac0489450ace0596090e52b04a47ab7a7ea759b Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Mon, 24 Apr 2023 23:17:09 +0700 Subject: [PATCH] add types decoding benchmark --- bench/types.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bench/types.exs 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 +)