diff --git a/bench/check.exs b/bench/check.exs index a87983a..3c70fb0 100644 --- a/bench/check.exs +++ b/bench/check.exs @@ -13,7 +13,7 @@ cidrs = Bench.Inputs.cidrs(1_000) parsed_cidrs = %{ remote_ip: Enum.map(cidrs, &RemoteIp.Block.parse!/1), - inet_cidr: Enum.map(cidrs, &InetCidr.parse(&1, true)), + inet_cidr: Enum.map(cidrs, &InetCidr.parse_cidr!(&1, true)), cider: Enum.map(cidrs, &Cider.parse/1), cidr: Enum.map(cidrs, &CIDR.parse/1), } diff --git a/bench/parse.exs b/bench/parse.exs index 4392f03..1bf7c4d 100644 --- a/bench/parse.exs +++ b/bench/parse.exs @@ -4,7 +4,7 @@ cidrs = Bench.Inputs.cidrs(1_000) suite = %{ remote_ip: fn -> Enum.each(cidrs, &RemoteIp.Block.parse!/1) end, - inet_cidr: fn -> Enum.each(cidrs, &InetCidr.parse(&1, true)) end, + inet_cidr: fn -> Enum.each(cidrs, &InetCidr.parse_cidr!(&1, true)) end, cider: fn -> Enum.each(cidrs, &Cider.parse/1) end, cidr: fn -> Enum.each(cidrs, &CIDR.parse/1) end, }