Prima::Stress(3)

πŸ“¦
version 1.78 Β· 5 versions
, in fedora 44

✨ Prima::Stress πŸ’–

okay so this is Prima::Stress(3) from the User Contributed Perl Documentation section β€” a lil stress-test module that lives in the Prima family 🫢


🌸 NAME 🌸

Prima::Stress β€” it's a stress test module, bestie. that's the whole name, that's the whole vibe πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. this module is made for test purposes, fr fr. its whole job is to check how a program or a module holds up under particular conditions β€” the kind of conditions you'd 100% overlook while you're designing stuff, no cap 😭

right now, the stress factors that are actually implemented are:

  • the default font size
  • the default scrollbar sizes
  • the UI-scaling factor

and here's the cute part: those get set to different random values every single time the module is invoked ✨ like, every run is a little surprise. it's giving chaos as a feature πŸ’€

to use it, you literally just drop in a typical

use Prima::Stress;

and that's it. or, if your program gets invoked by calling perl, you can go the other route and use the

perl -MPrima::Stress program

syntax instead. same energy, different doorway πŸšͺ✨

heads up: the module does not provide any methods. like, zero. none. it's method-less. however β€” you absolutely can address individual aspects of the UI defaults, and that's what the API section is about πŸ‘‘


πŸŽ€ API πŸŽ€

🌟 Font size 🌟

use Prima::Stress q(fs=18);
perl -MPrima::Stress=fs=18 program

this syntax changes the default font size to 18 points. so if you've ever wanted your fonts to just be bigger for absolutely no reason β€” here's your moment πŸ’–


🌟 Display resolution 🌟

use Prima::Stress q(dpi=192);
perl -MPrima::Stress=dpi=192 program

this syntax changes the display resolution to 192 pixels per inch. that's a lot of pixels per inch, and that's the point 🫢


🌟 Scrollbar sizes 🌟

use Prima::Stress q(src=40);
perl -MPrima::Stress=src=40 program

this syntax changes the default width of vertical scrollbars and the default height of horizontal scrollbars to 40 pixels. chunky scrollbars era πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Dmitry Karasik <dmitry@karasik.eu.org>


that's the whole page, bestie β€” go forth and stress-test responsibly πŸ’œ

this lil writeup came to you courtesy of perl v5.42.3, dated 2026-09-16, and yes it's still serving Prima::Stress(3) energy, periodt 🌈⭐

πŸ“¦ where this page comes from