Re: Is memmove faster than a simple C loop ?



On 16 juil, 02:42, Joni Toivanen <jomio...@xxxxxxxxx> wrote:
jice wrote:
Ok here are the results.

[Snip the results]

Note that you can probably get much more accurate results if you use
something like the 'time' command on a Linux system (I'm sure there is
something similar for other operating systems too). It will measure the
actual time used by the program, and not the elapsed time (which is not
reliable, because your system might be doing something on the background
and skew the results).


Right, except that time will take the process start and the list
memory allocation into account. While it may not matter for the last
test, it could definitely screw the 10 000 and 100 000 insertions
tests as the difference between both tests is less than 1 sec.

--
jice
.



Relevant Pages

  • Re: newbie startup script woes
    ... > I can start the daemon from the command line but no matter what ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Great SWT Program
    ... These lines are the output of a directory-listing command and are ... With typical Windows tools, one can select a block of ... the editor you don't even have the benefit of whatever autocomplete ...
    (comp.lang.java.programmer)
  • Re: Name change
    ... nearly impossible to uninstall, so I'm a bit wary about giving it a go. ... hard to scrape off the walls if the uninstall or make uninstall command ... when it shuts down - startup's quick (RAM check aside), ...
    (uk.people.support.depression)
  • Re: (some) Old Templars do not die/Long and Speculative
    ... but the leadership was composed entirely of (French) knights.... ... But not inventors. ... in command of the strategy in Outremer. ...
    (soc.history.medieval)
  • Re: Great SWT Program
    ... a line of the display for showing a search command in progress ... search turns up some references to Chinese and vim that makes me ... (repeat command) ...
    (comp.lang.java.programmer)