Skip to content

Instantly share code, notes, and snippets.

@tckb
Last active May 13, 2018 08:53
Show Gist options
  • Save tckb/ee13867e8a50e069afb04b25fc9efd85 to your computer and use it in GitHub Desktop.
Save tckb/ee13867e8a50e069afb04b25fc9efd85 to your computer and use it in GitHub Desktop.
##### With input ELXIR - 5000 #####
Name ips average deviation median 99th %
downcase_ascii_patternMatch 7.50 K 133.42 μs ±22.23% 133 μs 269 μs
downcase_ascii_iodata 7.28 K 137.39 μs ±19.84% 133 μs 258 μs
Comparison:
downcase_ascii_patternMatch 7.50 K
downcase_ascii_iodata 7.28 K - 1.03x slower
Memory usage statistics:
Name average deviation median 99th %
downcase_ascii_patternMatch 85.13 KB ±0.86% 85.21 KB 85.21 KB
downcase_ascii_iodata 78.38 KB ±0.00% 78.38 KB 78.38 KB
Comparison:
downcase_ascii_patternMatch 85.21 KB
downcase_ascii_iodata 78.38 KB - 0.92x memory usage
##### With input alpha #####
Name ips average deviation median 99th %
downcase_ascii_iodata 1.20 M 0.83 μs ±546.48% 0.80 μs 1.50 μs
downcase_ascii_patternMatch 1.20 M 0.84 μs ±562.91% 0.70 μs 1.70 μs
Comparison:
downcase_ascii_iodata 1.20 M
downcase_ascii_patternMatch 1.20 M - 1.00x slower
Memory usage statistics:
Name Memory usage
downcase_ascii_iodata 512 B
downcase_ascii_patternMatch 632 B - 1.23x memory usage
**All measurements for memory usage were the same**
##### With input elXIr - 5000 #####
Name ips average deviation median 99th %
downcase_ascii_iodata 7.65 K 130.77 μs ±20.34% 124 μs 240 μs
downcase_ascii_patternMatch 7.40 K 135.05 μs ±24.48% 135 μs 268 μs
Comparison:
downcase_ascii_iodata 7.65 K
downcase_ascii_patternMatch 7.40 K - 1.03x slower
Memory usage statistics:
Name average deviation median 99th %
downcase_ascii_iodata 78.38 KB ±0.00% 78.38 KB 78.38 KB
downcase_ascii_patternMatch 85.11 KB ±0.99% 85.21 KB 85.21 KB
Comparison:
downcase_ascii_iodata 78.38 KB
downcase_ascii_patternMatch 85.21 KB - 1.09x memory usage
##### With input elxir - 5000 #####
Name ips average deviation median 99th %
downcase_ascii_iodata 7.96 K 125.67 μs ±19.77% 124 μs 237 μs
downcase_ascii_patternMatch 7.73 K 129.32 μs ±24.11% 130 μs 260 μs
Comparison:
downcase_ascii_iodata 7.96 K
downcase_ascii_patternMatch 7.73 K - 1.03x slower
Memory usage statistics:
Name average deviation median 99th %
downcase_ascii_iodata 78.38 KB ±0.00% 78.38 KB 78.38 KB
downcase_ascii_patternMatch 85.16 KB ±0.68% 85.21 KB 85.21 KB
Comparison:
downcase_ascii_iodata 78.38 KB
downcase_ascii_patternMatch 85.21 KB - 1.09x memory usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment