9 ms·
Now you are measuring the speed of the fork/exec call. To really do this right you need to write a small script that copies the file 1000 times or creates a ha
by jrockway 17y ago
Now you are measuring the speed of the fork/exec call. To really do this right you need to write a small script that copies the file 1000 times or creates a hard link 1000 times.
- lisper 17y agoNo, fork is a lot faster than disk I/O: [ron@mickey:~]$ time for i in {1..1000}; do echo foo>/dev/null; done real 0m0.064s user 0m0.039s sys 0m0.025s