4 ms·
Yep, this is probably the most readable implementation of all languages so far. I ran it and got 3.59s (Go 0.82s, Rust 1.55s, Shell 42.6s(?)) For accurate diff
by frankenst1 6y ago
Yep, this is probably the most readable implementation of all languages so far. I ran it and got 3.59s (Go 0.82s, Rust 1.55s, Shell 42.6s(?))
For accurate diff results, one would need `puts` instead of `p` to get rid of the additional quotes.
- bestinterest 6y agoCheckout Crystal lang one (Ruby but fast), https://github.com/benhoyt/countwords/pull/21/files https://github.com/benhoyt/countwords/pull/21/files seems to keep readability intact and committer is saying it outperforms Go which is interesting.
- frankenst1 6y agoClocks in at 1.48s for me which is faster than Ruby but slower than JavaScript.
- derjames 6y agowith --no-debug --release ?
- frankenst1 6y agocrystal build --no-debug --release simple.cr -o simple-cr