4 ms·
Don't forget forking. To benchmark the maximum shell script performance (in terms of calls to other tools per second), try this micro-benchmark: while tru
by jcromartie 15y ago
Don't forget forking.
To benchmark the maximum shell script performance (in terms of calls to other tools per second), try this micro-benchmark:
while true; do date; done | uniq -c
Unix shells under Windows (with cygwin, etc.) run about 25 times slower than OS X.
- Mavrik 15y agoWell, Unix shells under Windows don't even implement forking, so this test is kinda meaningless isn't it? It's like racing cars where one of the cars has its wheels taken off.
- koenigdavidmj 15y agoCygwin has fork. The problem is that Cygwin's fork has to copy the entire address space into the new process, whereas Linux uses copy-on-write to make forking much faster (you only need to copy the page tables).