First, clone the repo:
git clone https://github.com/rodrigocitadin/reports && cd reports
Then, install deps
mix deps.get
So, run iex
iex -S mix
Reports.build "report_complete.csv"
reports = Enum.map(1..10, fn _ -> "splitted_report.csv" end)
Reports.build_many reports
# Normal
:timer.tc fn -> Reports.build("report_complete.csv") end
# Parallel
reports = Enum.map(1..10, fn _ -> "splitted_report.csv" end)
:timer.tc fn -> Reports.build_many(reports) end
Time is in microseconds
mix test