The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Benchmark inflation versus instantiation

Prints out results like:

    1774 objects
    Benchmark: timing 10 iterations of Inflation, Instantiation...
    Inflation:  9 wallclock secs ( 9.60 usr +  0.00 sys =  9.60 CPU) @  1.04/s (n=10)
    Instantiation: 15 wallclock secs (14.91 usr +  0.01 sys = 14.92 CPU) @  0.67/s (n=10)

    Inflation:      1847.92 objects per second, 489786 bytes (  276 bytes per object)
    Instantiation:  1189.01 objects per second, 110970 bytes (   62 bytes per object)