Algorithm-Classifier-IsolationForest
view release on metacpan or search on metacpan
benchmarking/BenchAccel.pm view on Meta::CPAN
# wall-clock time drops. That makes the c_openmp variant look
# *slower* than c_serial in cmpthese output -- the opposite of what
# a user actually experiences.
#
# This module replaces it with three Time::HiRes-based helpers, used
# across every bench script in this directory so they share a single
# timing path:
#
# wall_cmpthese($target_secs, \%vars)
# cmpthese-style comparison table, sorted slowest -> fastest with
# a pairwise percent-difference matrix. Prints only; returns
# nothing. Used when comparing several alternatives at once.
#
# wall_rate($code, $secs)
# Warm up briefly, then time $code for $secs wall-clock seconds.
# Returns ops/second as a scalar. Used when the script formats
# its own table (e.g. bench-sklearn-scoring's side-by-side
# Perl-vs-sklearn rows).
#
# wall_time_median($code, $reps)
# Run $code once as a warm-up, then time exactly $reps invocations
( run in 0.482 second using v1.01-cache-2.11-cpan-7fcb06a456a )