Skip to content

Conversation

poland-can-into-space
Copy link

@poland-can-into-space poland-can-into-space commented Sep 5, 2019

I made it faster and memory efficient by using ets tables.
Below is a statistical report generated by Benchee

Name ips average deviation median 99th %
ets 0.00689 2.42 min ±0.00% 2.42 min 2.42 min
original 0.00624 2.67 min ±0.00% 2.67 min 2.67 min

Comparison:
ets 0.00689
original 0.00624 - 1.10x slower +0.25 min

Memory usage statistics:

Name Memory usage
ets 13.12 GB
original 100.76 GB - 7.68x memory usage +87.65 GB

system

available_memory: "3.85 GB",
cpu_speed: "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz",
elixir: "1.9.1",
erlang: "22.0.7",
num_cores: 2,
os: :Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant