On 23/06/19 18:05, Barak A. Pearlmutter wrote: > Package: coreutils > Version: 8.30-3 > Severity: normal > > Was using seq to write some data to test that a cheapo enormous SD card > isn't faking its capacity. Thought I'd use seq --equal-width just to > make calculations easier. But jeepers creepers, what a slowdown! > > $ time seq 0 10000000 > /dev/null > > real 0m0.358s > user 0m0.331s > sys 0m0.018s > > $ time seq --equal-width 0 10000000 > /dev/null > > real 0m29.562s > user 0m27.968s > sys 0m0.100s > > $ echo '27.968 / 0.331' | bc > 84
Right --equal-width currently goes through stdio formatting, rather than simple ascii manipulation. The fastest solution for you is probably: yes 10000000| tail -n 10000000