Your point is taken, so I reran the tests and got this,
Rate grep_loop for_loop grep_loop 150375/s -- -22% for_loop 193618/s 29% --
So now they are both faster, but grep is still slower. Than the for loop
In reply to Re^2: Battle Royal Grep vs For
by Herkum
in thread Battle Royal Grep vs For
by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |