Jon Bentley has written a series of articles on how to use shell scripts and time commands to measure time complexity. If anyone is interested please send me a mail, I will try and hunt up the book/articles. (My copy of Programming Pearls is somewhere inside my bookshelf; but I am reasonably sure that this article is not in it) P Asokan