> > Why not simply write benchmark?
> >
>
> A benchmark wouldn't be accurate, as it will be IO bound,


!?
Just repeat the commands couple thousand times with either case (file exist
and file doesn't exist) and take the mean time for comparison. If the
accuracy isn't enough to see the difference in benchmark, then why there
would be difference in practice?



> Besides, first option can fail if
> you don't have write access to the file, thus needing a third access to
> check for permission to delete.


I agree that would change the question, but so far it seem to be unfounded
assumption.


Jussi
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to