Created
May 12, 2018 17:24
-
-
Save tckb/6e0a55e9482e5de785059e3a2de2b4e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### With input ELXIR - 500 ##### | |
Name ips average deviation median 99th % | |
downcase - pattern_match 61.44 K 16.28 μs ±342.71% 12 μs 63 μs | |
downcase - stdlib 17.55 K 56.98 μs ±215.80% 39 μs 266 μs | |
Comparison: | |
downcase - pattern_match 61.44 K | |
downcase - stdlib 17.55 K - 3.50x slower | |
Memory usage statistics: | |
Name Memory usage | |
downcase - pattern_match 7.98 KB | |
downcase - stdlib 0.41 KB - 0.05x memory usage | |
**All measurements for memory usage were the same** | |
##### With input ELXIR - 5000 ##### | |
Name ips average deviation median 99th % | |
downcase - pattern_match 5.74 K 174.23 μs ±165.41% 141 μs 629 μs | |
downcase - stdlib 1.92 K 521.99 μs ±59.21% 420 μs 1691.94 μs | |
Comparison: | |
downcase - pattern_match 5.74 K | |
downcase - stdlib 1.92 K - 3.00x slower | |
Memory usage statistics: | |
Name average deviation median 99th % | |
downcase - pattern_match 84.98 KB ±1.46% 85.21 KB 85.21 KB | |
downcase - stdlib 25.36 KB ±14.23% 26.01 KB 26.01 KB | |
Comparison: | |
downcase - pattern_match 85.21 KB | |
downcase - stdlib 26.01 KB - 0.31x memory usage | |
##### With input alpha:big - 26 ##### | |
Name ips average deviation median 99th % | |
downcase - pattern_match 980.91 K 1.02 μs ±584.52% 0.80 μs 3.30 μs | |
downcase - stdlib 280.95 K 3.56 μs ±1109.68% 2 μs 15 μs | |
Comparison: | |
downcase - pattern_match 980.91 K | |
downcase - stdlib 280.95 K - 3.49x slower | |
Memory usage statistics: | |
Name Memory usage | |
downcase - pattern_match 632 B | |
downcase - stdlib 760 B - 1.20x memory usage | |
**All measurements for memory usage were the same** | |
##### With input alpha:small - 26 ##### | |
Name ips average deviation median 99th % | |
downcase - pattern_match 1.31 M 0.76 μs ±595.34% 0.70 μs 1.50 μs | |
downcase - stdlib 0.28 M 3.51 μs ±1089.29% 2 μs 15 μs | |
Comparison: | |
downcase - pattern_match 1.31 M | |
downcase - stdlib 0.28 M - 4.61x slower | |
Memory usage statistics: | |
Name Memory usage | |
downcase - pattern_match 632 B | |
downcase - stdlib 760 B - 1.20x memory usage | |
**All measurements for memory usage were the same** | |
##### With input elxir - 500 ##### | |
Name ips average deviation median 99th % | |
downcase - pattern_match 88.60 K 11.29 μs ±171.28% 10 μs 29 μs | |
downcase - stdlib 25.81 K 38.75 μs ±49.04% 35 μs 93 μs | |
Comparison: | |
downcase - pattern_match 88.60 K | |
downcase - stdlib 25.81 K - 3.43x slower | |
Memory usage statistics: | |
Name Memory usage | |
downcase - pattern_match 7.98 KB | |
downcase - stdlib 0.41 KB - 0.05x memory usage | |
**All measurements for memory usage were the same** | |
##### With input elxir - 5000 ##### | |
Name ips average deviation median 99th % | |
downcase - pattern_match 6.59 K 151.78 μs ±122.41% 130 μs 533 μs | |
downcase - stdlib 2.61 K 383.05 μs ±55.86% 343 μs 778.33 μs | |
Comparison: | |
downcase - pattern_match 6.59 K | |
downcase - stdlib 2.61 K - 2.52x slower | |
Memory usage statistics: | |
Name average deviation median 99th % | |
downcase - pattern_match 85.08 KB ±1.12% 85.21 KB 85.21 KB | |
downcase - stdlib 25.65 KB ±10.68% 26.01 KB 26.01 KB | |
Comparison: | |
downcase - pattern_match 85.21 KB | |
downcase - stdlib 26.01 KB - 0.31x memory usage | |
##### With input empty - 0 ##### | |
Name ips average deviation median 99th % | |
downcase - stdlib 20.82 M 0.0480 μs ±135.52% 0.0420 μs 0.114 μs | |
downcase - pattern_match 11.57 M 0.0864 μs ±686.54% 0.0700 μs 0.24 μs | |
Comparison: | |
downcase - stdlib 20.82 M | |
downcase - pattern_match 11.57 M - 1.80x slower | |
Memory usage statistics: | |
Name Memory usage | |
downcase - stdlib 616 B | |
downcase - pattern_match 680 B - 1.10x memory usage | |
**All measurements for memory usage were the same** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment