boleary has asked for the wisdom of the Perl Monks concerning the following question:
I am running nytprof to profile some test code on a recent windows 10 laptop
It has been very helpful to fix some subroutines to make it all run faster
The strange thing is with the test I am running it can finish in 11 seconds or sometimes 30 seconds...
But the test is exactly the same.
When I look at the profile, it looks the same except the time for each event just doubles
I'm wondering if my laptop is going into a reduced power mode?
I can hear the fan changing speeds as I run....
Would anyone care to weigh in?
190697 1 1 3.05s 3.98s main::equals_contains_or_m +atches 190697 4 3 1.86s 6.93s main::extended_string_matc +h_check 480 1 1 1.41s 8.57s main::assignSymSecToPins 707333 159 20 1.41s 1.41s main::CORE:match (opcod +e) 480293 45 10 1.04s 1.04s main::CORE:regcomp (opco +de) 23425 1 1 672ms 986ms main::newStripLeadingZeros 2953 6 2 294ms 687ms main::stringContainsMatchFro +mCset 279247 53 11 247ms 247ms main::CORE:subst (opcode +) 762 5 2 236ms 252ms main::simple_dpair_find 10251 1 1 130ms 216ms main::isValidRegex 6372 1 1 123ms 162ms YAML::Tiny::_load_scalar 516 1 1 119ms 321ms YAML::Tiny::_load_hash 6 1 1 109ms 601ms main::sortSectionSignalList 647 1 1 86.4ms 124ms main::sortAtomsNumerically 10251 1 1 71.0ms 290ms main::fixLonelyQuantCharsI +nRegEx
190697 1 1 3.73s 4.92s main::equals_contains_or_m +atches 190697 4 3 2.36s 8.78s main::extended_string_matc +h_check 707336 159 20 1.88s 1.88s main::CORE:match (opcod +e) 480 1 1 1.77s 11.2s main::assignSymSecToPins 480293 45 10 1.38s 1.38s main::CORE:regcomp (opco +de) 23425 1 1 950ms 1.36s main::newStripLeadingZeros 762 5 2 672ms 713ms main::simple_dpair_find 2953 6 2 375ms 987ms main::stringContainsMatchFro +mCset 279247 53 11 314ms 314ms main::CORE:subst (opcode +) 10251 1 1 168ms 456ms main::fixLonelyQuantCharsIn +RegEx 10251 1 1 154ms 283ms main::isValidRegex 6372 1 1 130ms 169ms YAML::Tiny::_load_scalar 516 1 1 119ms 328ms YAML::Tiny::_load_hash 647 1 1 80.6ms 123ms main::sortAtomsNumerically 117 3 2 68.8ms 68.8ms Clone::clone (xsub)
190697 1 1 7.06s 9.38s main::equals_contains_or_m +atches 190697 4 3 4.17s 17.0s main::extended_string_matc +h_check 480 1 1 3.40s 21.6s main::assignSymSecToPins 707335 159 20 3.08s 3.08s main::CORE:match (opcod +e) 480293 45 10 2.60s 2.60s main::CORE:regcomp (opco +de) 23425 1 1 2.15s 3.22s main::newStripLeadingZeros 279247 53 11 625ms 625ms main::CORE:subst (opcode +) 2953 6 2 489ms 1.21s main::stringContainsMatchFro +mCset 762 5 2 453ms 480ms main::simple_dpair_find 10251 1 1 244ms 397ms main::isValidRegex 6 1 1 172ms 899ms main::sortSectionSignalList 10251 1 1 130ms 533ms main::fixLonelyQuantCharsIn +RegEx 6372 1 1 128ms 166ms YAML::Tiny::_load_scalar 68724 10 3 120ms 120ms main::CORE:substcont (opco +de) 516 1 1 115ms 320ms YAML::Tiny::_load_hash
|
|---|