Exercise 2-9 in the knr book asks for a rewrite of an example function, with my version being faster.
I have written one, and by code alone, I deem it faster.
My question is, how can I test the speed of a function using the tools given up to the exercise and no further?
I have thought about feeding the function a large amount of values to process, and to manually time it myself in seconds, though it seems inappropriate.