From a0025e572daef44d2156b5cbbc36502ff43c3b76 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 16 Mar 2021 22:50:31 -0400 Subject: [PATCH] More comparison data --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24f4df2..ce65507 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ This library and [masterminds/html5](https://packagist.org/packages/masterminds/ | | Masterminds | MensBeam | |-----------------------------------------------------|---------------------------------------|----------------------------------------| +| Minimum PHP version | 5.3 | 7.1 | | Extensions required | dom, ctype, mbstring or iconv | dom | | Supported encodings | System-dependent | [Per specification](https://html.spec.whatwg.org/multipage/parsing.html#character-encodings) | | Encoding detection | None | Byte order mark, HTTP header, [pre-scan](https://html.spec.whatwg.org/multipage/parsing.html#prescan-a-byte-stream-to-determine-its-encoding) | @@ -34,5 +35,10 @@ This library and [masterminds/html5](https://packagist.org/packages/masterminds/ | Handling of data between table cells | Left as-is | [Per specification](https://html.spec.whatwg.org/multipage/parsing.html#an-introduction-to-error-handling-and-strange-cases-in-the-parser) | | Handling of omitted start tags | Elements are not inserted | Per specification | | Handling of processing instructions | Processing instructions are retained | Per specification | -| Time needed to parse single-page HTML specification | 2.8 seconds | 7.0 seconds | +| Namespace for HTML elements | Per specification, configurable | Null | +| Time needed to parse single-page HTML specification | 2.8 seconds† | 7.0 seconds†† | | Peak memory needed for same | 38 MB | 13.9 MB | + +† With HTML namespace disabled. With HTML namespace enabled it does not finish in a reasonable time due to a PHP bug. + +†† With parse errors suppressed. Reporting parse errors adds approximately 10% overhead