Skip to content

Instantly share code, notes, and snippets.

View bryanenders's full-sized avatar

Bryan Enders bryanenders

  • Mozilla
  • 05:17 (UTC -04:00)
View GitHub Profile
integer_pairs =
for a <- 1..1_000,
b <- 1..1_000,
do: [a, b]
Benchee.run(
%{
"===" => &Enum.map(&1, fn [a, b] -> a === b end),
"==" => &Enum.map(&1, fn [a, b] -> a == b end),
"!==" => &Enum.map(&1, fn [a, b] -> a !== b end),