Created
May 20, 2022 14:18
-
-
Save vrurg/29df9c1ce39f3c267df415b1b41f4291 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test; | |
my $v = 0; | |
my $st = now; | |
for ^100000 { | |
$v++; | |
} | |
my $et = now; | |
diag "Test time: " ~ ($et - $st); |
Author
vrurg
commented
May 20, 2022
•
Modified version to report module loading time:
my $st0 = BEGIN now;
use Test;
my $v = 0;
my $st = now;
for ^100000 {
$v++;
}
my $et = now;
diag "Test time: " ~ ($et - $st);
diag "Module loading: " ~ ($st - $st0);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment