Created
February 12, 2017 04:27
-
-
Save kiennt/5e7fa62dd1906c0eccb41954992dc0bf to your computer and use it in GitHub Desktop.
split_case_benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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