bench: Re-run with more time + JSON::Tiny & XMLWriter benchmarks

This commit is contained in:
Yorhel 2025-02-19 12:57:33 +01:00
parent 9014e2900c
commit 63f524622b
3 changed files with 321 additions and 168 deletions

View file

@ -126,6 +126,13 @@ your own code. For example, if you have a function to convert some data into a
nicely formatted table, you could name it C<info_table_()> or something. It's
like having composable custom HTML elements, but in the backend!
Generating HTML is something that website backends tend to do a I<lot>, but
calling tons of Perl functions is generally not very fast. For that reason,
this is an XS module implemented in C. It compares favorably against a few
other XML writing modules on CPAN that I tried, but whether this approach is
faster than typical templating solutions... I've no idea. Check out
L<FU::Benchmarks> for some benchmarks.
=head2 Top-level functions
These functions all return a byte string with (UTF-8) encoded XML.