Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When I did some testing on my machine, I got about 60MB/s out of my not-so-modern hardware. That's 3.6GB/minute or 216GB per hour (so 3hours produces about 640GB). I would expect that the time spent in your application is mostly "waiting for the disk", in which case, it makes absolutely no difference what IO methods you use. </p> <p>But like ALL performance questions, it's not an answer you can find by asking on the internet, or look it up in a book, or whatever. It has to be measured on the system(s) that you are concerned about. Change my skanky old hard-disks for some nicely configured RAID, and you get a much better performance [if it's the right kind of raid system - some are slower than individual disks, as the intention isn't to speed up access but ensure reliability]. </p> <p>You can also make some comparisons: 1. redirect your software's output to /dev/null - check how long it takes to run your code now. If it's something like 10-100x faster than when you are writing to files, then you know that the way you write now or some other method won't make any difference at all. 2. Create similar sized files with <code>dd if=/dev/zero of=yourfile bs=4k count=largenumber</code> (largenumber * 4KB = typical file-size) - if your application is writing several files, then write a script that writes several different files like that). If that's much faster than your application, then there's something to be gained by altering the way you do output from your application.</p> <p>If either of the two things above show that there's a potential for gain, then write some benchmarks that produce a large amount of output in the same way you intend your application to work and see what makes a difference. By all means come back here and ask questions. But my guess is that your application won't run any faster or slower no matter what you do about output mechanisms, because it's all down to "how fast the disk can write". </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload