Skip to content

Instantly share code, notes, and snippets.

@kiennt
Created February 12, 2017 04:27
Show Gist options
  • Save kiennt/5e7fa62dd1906c0eccb41954992dc0bf to your computer and use it in GitHub Desktop.
Save kiennt/5e7fa62dd1906c0eccb41954992dc0bf to your computer and use it in GitHub Desktop.
split_case_benchmark
defmodule App do
def split_case(value) do
# implementation in here
end
def run do
for _ <- 1..1_000_000 do
split_case("HelloWorld")
end
end
end
#!/usr/bin/env sh
rm -rf Elixir.App.beam
elixirc app.ex
time elixir -e "App.run"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment