4 ms·
How Fast Can You Type a Million Letters?
- BearOso 8y agofor i in {1..1000000}; do echo -n i >> file; done; vim file
- didgeoridoo 8y agoThis was an utterly brutal nerd-snipe on a Friday afternoon. Damn you, cfadvan and FiveThirtyEight. Damn you. My (likely wrong, certainly non-proven) solution is here for those looking for a laugh: https://docs.google.com/spreadsheets/d/1w3lt5mpMQyyV2LWDspMRB69C5QKodJ-uP3zU0UWHbBc/edit?usp=sharing https://docs.google.com/spreadsheets/d/1w3lt5mpMQyyV2LWDspMR...
- jannotti 8y agoIn emacs, 9 keys. M-1 0 0 0 0 0 0 i
- jannotti 8y agoIt also seems to have pretty much locked up my emacs. I guess I deserved it.
- perl4ever 8y agoDid it eventually finish? I just timed myself (start with an empty document to finish with a million i's) using the method I mentioned, and it took 1:01.19 for an average speed of 16KB/s.
- jannotti 8y agoIt actually finished adding the i's pretty quickly (a few seconds), it was navigation afterward that was a challenge. Probably because emacs is optimized to navigate with reasonable sized lines. A one megabyte buffer isn't a big deal, but I think a one megabyte line was. Anyway, I hit C-a, C-k and then did something else. It completed at some point, probably within a minute or something.
- perl4ever 8y agoIn Notepad++, I typed one 'i' and then did a search/replace of 'i' with 'iiiiiiiiii' six times. Yes, this is two extra characters of typing, but on the other hand, I didn't have to learn emacs. Edit: or, one could do it by typing only one character if copy and paste doesn't count.