This will use bignums - even worse... Until there is native 64bit int... Well... I'll resort to my own function.
You mean you have a function that returns millisecond time or better and is neither using deltas like time() nor bignums like gethrtime()? Sounds interesting. How does it work?
If there is any good benchmark suite (which will run on 7.4), I can test different options and publish the results.
Test with 7.5 instead? That should work just as well. It shouldn't be too difficult for you to backport the benchmark tests to 7.4 either.
But I don't think benchmarks will tell the whole story, or even a significant part of it. It's much more interesting to look at real-world applications, say Roxen, Caudium, Aido and your IP-number crunching application (what does it actually do?).
/ Martin Stjernholm, Roxen IS
Previous text:
2003-09-19 02:11: Subject: Re: time() and optimization again
On Fri, Sep 19, 2003 at 01:50:02AM +0200, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
Use gethrtime instead if you want high precision time.
This will use bignums - even worse... Until there is native 64bit int... Well... I'll resort to my own function.
it'd be nice to see some comparisons on the effects of that on different applications first. Care to collect some data?
If there is any good benchmark suite (which will run on 7.4), I can test different options and publish the results.
Regards, /Al
/ Brevbäraren