Benchm...essBar(3pm)
π Benchmark::ProgressBar π
okay bestie, so this is Benchmark::ProgressBar β a Perl module from User Contributed Perl Documentation that literally exists so you can watch your benchmark run instead of just sitting there like π§ waiting with zero clue when it'll be done. it's the manual page Benchm...essBar(3pm) btw, if you were wondering where you even are rn.
β¨ SYNOPSIS β¨
use Benchmark::ProgressBar qw(cmpthese);
cmpthese(10_000, {
a => sub { ... },
b => sub { ... },
} );
that's it. that's the whole vibe. π
πΈ DESCRIPTION πΈ
so like. this module is a VERY crude combo of Benchmark.pm and Term::ProgressBar. that's the whole concept fr fr. basically the author got sick and tired π of waiting for benchmarks to finish up with absolutely no idea what the ETA was β and honestly? relatable. iconic behavior. we love a problem-solving queen. π
here's the tea: you can use it as a drop-in replacement for Benchmark.pm π«Ά β but heads up, the only functions that will actually display a progress bar are these three:
cmpthesetimethesetimeit
so don't come for it expecting every single function to give you the cute little bar. it's giving selective service, not full coverage. π
now the β¨howβ¨ β and bestie, brace yourself β this is achieved via a crude (a VERY crude) re-definition of Benchmark.pm's subroutines. yeah. that's the mechanism. it's lowkey unhinged but it works.
β οΈ and because of that re-definition situation, you should not be mixing this with Benchmark.pm. like, don't. the author literally says "I don't know why you would" and honestly? same. π
final thoughts from the source, verbatim energy: it does the job for the author, YMMV π, and patches are welcome! so if you've got something to contribute, the door is open, bestie. π¦
π AUTHOR π
Copyright (c) 2008 Daisuke Maki "daisuke@endeworks.jp"
(put some respect on the name, they built this for us π)
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
and that's the page, bestie!! β¨ this one came from perl v5.34.0, dated 2022-06-08, filed under Benchm...essBar(3pm) β go forth and watch those progress bars fill up, you absolute main character ππΈπ¦
π¦ where this page comes from
- debian bookworm: libbenchmark-progressbar-perl 0.00001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbenchmark-progressbar-perl 0.00001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbenchmark-progressbar-perl 0.00001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbenchmark-progressbar-perl 0.00001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbenchmark-progressbar-perl 0.00001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms