From 2721e3b467e66d34c338384d75242cf9569147e2 Mon Sep 17 00:00:00 2001 From: "Flavio S. Glock" Date: Thu, 12 Sep 2024 16:28:51 +0200 Subject: [PATCH] docs --- README.md | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 9f6eb96d..33c6e60c 100644 --- a/README.md +++ b/README.md @@ -410,21 +410,25 @@ public class Main { ### Performance Benchmarks -The following benchmarks provide an order of magnitude comparison with Perl: - -- **v1.0.0**: - - Lexer and Parser: Processes 50k lines per second; direct comparison with Perl is not applicable. - -- **v1.1.0**: - - Numeric operations: 2x faster than Perl - - String operations: Comparable to Perl - - Eval-string: 10x slower than Perl - -- **v1.2.0** through **v1.4.0**: - - No performance related changes - -- **v1.5.0**: - - Example file `life.pl` runs 3x slower than Perl +These benchmarks provide an order-of-magnitude comparison with Perl: + +| Version | Feature | Performance Relative to Perl | +|---------|---------|------------------------------| +| v1.0.0 | Lexer and Parser | 50k lines/second (N/A) | +| v1.1.0 | Numeric operations | 2x faster | +| | String operations | Comparable | +| | Eval-string | 10x slower | +| v1.5.0 | Example: `life.pl` | 3x slower | +| v1.6.0 | Module compilation | 5x slower | + +Notes: +- v1.2.0 through v1.4.0: No significant performance changes. +- Module compilation benchmark: Repeatedly loading `Data::Dumper` (80 times). + +Perl equivalent for module compilation benchmark: +```perl +perl -Ilib -e 'for (1..80) { eval "use Data::Dumper;"; delete $INC{"Data/Dumper.pm"}; }' +``` ## License