New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very long delays of Benchmark module in high resolution mode #9916
Comments
From guido@imperia.bgCreated by guido@imperia.netI run the following script for rougly 20 seconds on a vmware image #! /usr/bin/perl -w use strict; #use Benchmark qw (:hireswallclock); while (1) { Standard error looks roughly like this: new=1255953540 0.01 0 0 0 0 In these 20 seconds, about 14.99 seconds user time, and about 4.92 Now, I import the :hireswallclock tag, and run the script again about new=1255954940.22457 0.01 0 0 0 0 I spent 19.13 seconds system time but almost no user time. This is in fact a nasty problem: The Benchmark module runs exactly the I can reproduce that problem only on that particular system, and one of When you strace the two versions of the script, you can see that this time() is cheap, just a lookup of a global variable, times() is just a I think the only solution would be to do some computation inside of the Cheers, Perl Info
|
From guido@imperia.bgThere is even a simpler solution to the problem that does not require a Cheers, |
jarich@perltraining.com.au - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#69889 (status was 'open')
Searchable as RT69889$
The text was updated successfully, but these errors were encountered: