I read somewhere that it was good practice to factor out system overheads such as i/o when benchmarking algorithms
That may be a good rule of thumb, but -- as should now be obvious -- it doesn't apply all the time. In this case, the I/O is part of what we're testing. Factoring it out alters the algorithm significantly.
In reply to Re^6: removing duplicate lines
by revdiablo
in thread removing duplicate lines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |