Skip to content

Instantly share code, notes, and snippets.

@tallysmartins
Created July 3, 2018 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallysmartins/ef36d56cf31d4f8309af60c295507703 to your computer and use it in GitHub Desktop.
Save tallysmartins/ef36d56cf31d4f8309af60c295507703 to your computer and use it in GitHub Desktop.
Repo.all/2 benchmark
Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Number of Available Cores: 4
Available memory: 15.49 GB
Elixir 1.6.4
Erlang 20.3
Benchmark suite executing with the following configuration:
warmup: 2 s
time: 10 s
parallel: 1
inputs: none specified
Estimated total run time: 24 s
Benchmarking MySQL Repo.all/2...
Benchmarking Pg Repo.all/2...
Name ips average deviation median 99th %
MySQL Repo.all/2 33.75 29.63 ms ±10.54% 29.52 ms 38.03 ms
Pg Repo.all/2 11.48 87.12 ms ±5.79% 87.62 ms 109.92 ms
Comparison:
MySQL Repo.all/2 33.75
Pg Repo.all/2 11.48 - 2.94x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment