Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michael-michalski/benchmark_persistent_term
Benchmarking :persistent_term as a way of reading static platform configuration
https://github.com/michael-michalski/benchmark_persistent_term
elixir erlang
Last synced: 16 days ago
JSON representation
Benchmarking :persistent_term as a way of reading static platform configuration
- Host: GitHub
- URL: https://github.com/michael-michalski/benchmark_persistent_term
- Owner: michael-michalski
- Created: 2020-04-16T14:15:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T14:28:54.000Z (almost 5 years ago)
- Last Synced: 2024-11-22T15:38:31.686Z (3 months ago)
- Topics: elixir, erlang
- Language: Elixir
- Homepage: https://erlang.org/doc/man/persistent_term.html
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BenchmarkPersistentTerm
https://erlang.org/doc/man/persistent_term.html
```
Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Number of Available Cores: 8
Available memory: 31.34 GB
Elixir 1.10.2
Erlang 22.3.2Benchmark suite executing with the following configuration:
warmup: 2 s
time: 5 s
memory time: 0 ns
parallel: 1
inputs: none specified
Estimated total run time: 21 sBenchmarking :persistent_term.get...
Benchmarking Application.fetch_env!...
Benchmarking System.get_env...Name ips average deviation median 99th %
:persistent_term.get 25.58 M 39.09 ns ±1083.89% 28 ns 105 ns
Application.fetch_env! 3.68 M 271.67 ns ±5645.43% 204 ns 549 ns
System.get_env 2.08 M 481.78 ns ±4130.15% 327 ns 708 nsComparison:
:persistent_term.get 25.58 M
Application.fetch_env! 3.68 M - 6.95x slower +232.58 ns
System.get_env 2.08 M - 12.33x slower +442.69 ns```