Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #16984

Re: seq command terribly slow

From Robert Riches <spamtrap42@jacob21819.net>
Newsgroups comp.os.linux.misc
Subject Re: seq command terribly slow
Date 2016-03-15 02:38 +0000
Organization none-at-all
Message-ID <slrnneetdf.otf.spamtrap42@one.localnet> (permalink)
References <slrnne9qgo.5pk.spamtrap42@one.localnet> <874mca36r7.fsf@mantic.terraraq.uk> <slrnneb63g.p81.spamtrap42@one.localnet> <de469b0989e17d6e6c70bd903c07576c@remailer.privacy.at>

Show all headers | View raw


On 2016-03-14, Anonymous Remailer (austria) <mixmaster@remailer.privacy.at> wrote:
>
> Robert Riches <spamtra...@jacob21819.net> [RR]:
>
> RR> This command shows about 600MB/s, ~40X faster with much lower
> RR> total CPU use:
> RR>   yes '' | cat -n | tr -d ' \t' | head -c 1000000000000 | pv > /dev/null
> RR>
> RR> I plan to switch to a different distribution soon due to Wheezy's age,
> RR> so I'll look forward to confirming that improvement.
>
> Since tr seems to run even faster than yes, you could in the meantime use
> the following instead:
>
>< /dev/zero tr '\0' '\n' | cat -n | tr  -d ' \t' |
> 	head -c 1000000000000 | pv > /dev/null

That's very clever.

-- 
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

seq command terribly slow Robert Riches <spamtrap42@jacob21819.net> - 2016-03-13 04:18 +0000
  Re: seq command terribly slow Richard Kettlewell <rjk@greenend.org.uk> - 2016-03-13 12:24 +0000
    Re: seq command terribly slow Robert Riches <spamtrap42@jacob21819.net> - 2016-03-13 16:42 +0000
      Re: seq command terribly slow "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2016-03-14 14:22 +0100
        Re: seq command terribly slow Robert Riches <spamtrap42@jacob21819.net> - 2016-03-15 02:38 +0000
  Re: seq command terribly slow Gernot Fink <g.fink@gmx.net> - 2016-03-13 18:21 +0100
    Re: seq command terribly slow Richard Kettlewell <rjk@greenend.org.uk> - 2016-03-13 17:45 +0000
  Re: seq command terribly slow Eli the Bearded <*@eli.users.panix.com> - 2016-03-14 21:58 +0000
    Re: seq command terribly slow Robert Riches <spamtrap42@jacob21819.net> - 2016-03-15 02:44 +0000
      Re: seq command terribly slow Eli the Bearded <*@eli.users.panix.com> - 2016-03-16 00:41 +0000

csiph-web