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


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

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:44 +0000
Organization none-at-all
Message-ID <slrnneeton.otf.spamtrap42@one.localnet> (permalink)
References <slrnne9qgo.5pk.spamtrap42@one.localnet> <eli$1603141758@qz.little-neck.ny.us>

Show all headers | View raw


On 2016-03-14, Eli the Bearded <*@eli.users.panix.com> wrote:
> In comp.os.linux.misc, Robert Riches  <spamtrap42@jacob21819.net> wrote:
>> This command shows about 15MB/s:
>> 
>>     seq 1e12 | pv > /dev/null
>
> Does it store 1e12 as a floating point number and make conversion to int
> for comparision every time through the loop? printf() format all output?
>
> What do you get if you enable chargen in your inetd provider and then
> "telnet localhost chargen"?
>
> Elijah
> ------
> cause that's the character generator an old-timer like me would use

The man page does seem to imply that seq uses floating point math
internally.  However, with a reasonably modern CPU, I would
expect it should do be able to do better than 15MB/s, even doing
double precision floating point math.  Another poster said a more
modern seq version is faster than the pipeline in his tests.

"whatis chargen" yields "chargen: nothing appropriate."  "locate
chargen" yields nothing.

-- 
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