Better HN
topnewbestaskshowjobs
Log inSign up

FastedCoyote

4 karma · joined Jul 11, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

Two tips, if you're using Bash:

1. Use the external "true" command.

2. Use {a..b} to expand sequences of numbers as "seq" adds extra overhead.

    $ time for i in {1..500}; do /bin/true; done

    real    0m0.983s
    user    0m0.650s
    sys     0m0.423s

comment 6y ago · link · parent

It's trivial to change the User Agent.