Skip to content

Korin and liberu-genealogy/php-gedcom

Generated by tools/liberu-comparison/compare.php on 2026-11-15 with PHP 8.5.12, liberu-genealogy/php-gedcom 4.2.0 and Korin bcc7ada.

Each corpus input is read and written back by each library; the output is read with Korin and its structures (tag path and value, xrefs and order ignored) are compared with the input's.

Notes:

  • liberu documents support for GEDCOM 5.5.1 only; the 7.0 and UTF-16 cases are included for completeness.
  • A structure under a record whose xref was not written back counts as lost: pointers to it no longer resolve.
  • liberu writes a Format: … line before HEAD; Korin reads it as an unparsable line and ignores it.
  • Performance: one run per file on the machine that generated the report, not a PHPBench measurement.

Summary

Korin liberu
Read and written without an exception 64 of 64 11 of 64
Output identical to the input 64 of 64 0 of 64
All structures kept 64 of 64 2 of 64
Structures kept 21337 of 21337 4 of 21337
PHP warnings raised 0 102

liberu exceptions

Exception Cases
Exception: Unknown Gedcom\Record\Head\Char::version 27
Exception: Unknown Gedcom\Record\Subm::subn 24
Error: Call to undefined method Gedcom\Writer\Indi::convertEvent() 1
Exception: Unknown Gedcom\Record\Obje::file 1

Reading the benchmark files

Generated, fictional 5.5.1 files (benchmarks/BenchFile.php); full read, each in a separate process.

File Korin liberu
10 MB UTF-8 0.33 s, 66 MB 0.5 s, 182 MB
10 MB Windows-1251 0.51 s, 99 MB 0.62 s, 224 MB
50 MB UTF-8 1.77 s, 405 MB 2.85 s, 938 MB

Corpus cases

Structures kept; for liberu, the tag paths it lost (first five).

Case Version Encoding Korin liberu Lost by liberu
ansel-diacritics-551 5.5.1 ANSEL 7/7, identical exception
conc-cont-at-551 5.5.1 UTF-8 7/7, identical exception
cyrillic-cp1251-ansi-551 5.5.1 Windows-1251 13/13, identical exception
edit-long-note-551 5.5.1 UTF-8 6/6, identical exception
edit-surname-70 7.0 UTF-8 7/7, identical 1/7 INDI, INDI/NAME, INDI/NAME/GIVN, INDI/NAME/SURN, INDI/SEX
g7c-5-age-invalid 5.5.1 UTF-8 281/281, identical exception
g7c-5-age-valid 5.5.1 UTF-8 125/125, identical exception
g7c-5-atsign 5.5.1 UTF-8 23/23, identical exception
g7c-5-char-ascii-1 5.5.1 ASCII 4/4, identical exception
g7c-5-char-ascii-2 5.5.1 ASCII 4/4, identical exception
g7c-5-char-utf16be-1 5.5.1 UTF-16BE 5/5, identical 0/5 HEAD, HEAD/SUBM, HEAD/NOTE, SUBM, SUBM/NAME
g7c-5-char-utf16be-2 5.5.1 UTF-16BE 5/5, identical 0/5 HEAD, HEAD/SUBM, HEAD/NOTE, SUBM, SUBM/NAME
g7c-5-char-utf16le-1 5.5.1 UTF-16LE 5/5, identical 0/5 HEAD, HEAD/SUBM, HEAD/NOTE, SUBM, SUBM/NAME
g7c-5-char-utf16le-2 5.5.1 UTF-16LE 5/5, identical 0/5 HEAD, HEAD/SUBM, HEAD/NOTE, SUBM, SUBM/NAME
g7c-5-char-utf8-1 5.5.1 UTF-8 5/5, identical exception
g7c-5-char-utf8-2 5.5.1 UTF-8 5/5, identical exception
g7c-5-char-utf8-3 5.5.1 UTF-8 5/5, identical exception
g7c-5-date-all 5.5.1 UTF-8 8761/8761, identical exception
g7c-5-date-dual-invalid 5.5.1 UTF-8 258/258, identical exception
g7c-5-date-dual-valid 5.5.1 UTF-8 38/38, identical exception
g7c-5-enum-ext 5.5.1 ASCII 19/19, identical exception
g7c-5-filename-1 5.5.1 ASCII 24/24, identical exception
g7c-5-lang-all 5.5.1 UTF-8 103/103, identical exception
g7c-5-notes-1 5.5.1 UTF-8 19/19, identical exception
g7c-5-obje-1 5.5.1 UTF-8 21/21, identical exception
g7c-5-obsolete-1 5.5.1 ASCII 13/13, identical exception
g7c-5-pedi-1 5.5.1 UTF-8 10/10, identical exception
g7c-5-rela-1 5.5.1 ASCII 13/13, identical exception
g7c-5-sour-1 5.5.1 UTF-8 41/41, identical exception
g7c-5-tiny-1 5.5.1 ASCII 1/1, identical 1/1
g7c-5-xref-case 5.5.1 ASCII 8/8, identical exception
g7c-7-age-invalid 7.0 UTF-8 281/281, identical exception
g7c-7-age-valid 7.0 UTF-8 137/137, identical exception
g7c-7-atsign 7.0 UTF-8 23/23, identical exception
g7c-7-char-ascii-1 7.0 UTF-8 4/4, identical exception
g7c-7-char-ascii-2 7.0 UTF-8 4/4, identical exception
g7c-7-char-utf16be-1 7.0 UTF-8 5/5, identical exception
g7c-7-char-utf16be-2 7.0 UTF-8 5/5, identical exception
g7c-7-char-utf16le-1 7.0 UTF-8 5/5, identical exception
g7c-7-char-utf16le-2 7.0 UTF-8 5/5, identical exception
g7c-7-char-utf8-1 7.0 UTF-8 5/5, identical exception
g7c-7-char-utf8-2 7.0 UTF-8 5/5, identical exception
g7c-7-char-utf8-3 7.0 UTF-8 5/5, identical exception
g7c-7-date-all 7.0 UTF-8 10334/10334, identical exception
g7c-7-date-dual-invalid 7.0 UTF-8 342/342, identical exception
g7c-7-enum-ext 7.0 UTF-8 22/22, identical exception
g7c-7-filename-1 7.0 UTF-8 23/23, identical exception
g7c-7-lang-all 7.0 UTF-8 108/108, identical exception
g7c-7-notes-1 7.0 UTF-8 19/19, identical exception
g7c-7-obje-1 7.0 UTF-8 22/22, identical exception
g7c-7-obsolete-1 7.0 UTF-8 4/4, identical exception
g7c-7-pedi-1 7.0 UTF-8 10/10, identical exception
g7c-7-rela-1 7.0 UTF-8 15/15, identical exception
g7c-7-sour-1 7.0 UTF-8 47/47, identical exception
g7c-7-tiny-1 7.0 UTF-8 1/1, identical 0/1 HEAD
g7c-7-xref-case 7.0 UTF-8 8/8, identical exception
line-endings-mixed-551 5.5.1 UTF-8 7/7, identical exception
minimal-551 5.5.1 UTF-8 4/4, identical exception
minimal-70 7.0 UTF-8 1/1, identical 1/1
no-final-newline-70 7.0 UTF-8 3/3, identical 1/3 INDI, INDI/NAME
unknown-tags-551 5.5.1 UTF-8 16/16, identical exception
utf16be-bom-55 5.5 UTF-16BE 7/7, identical 0/7 HEAD, HEAD/SUBM, SUBM, SUBM/NAME, INDI
utf16le-bom-cyrillic-551 5.5.1 UTF-16LE 7/7, identical 0/7 HEAD, HEAD/SUBM, SUBM, SUBM/NAME, INDI
xref-forward-void-551 5.5.1 UTF-8 12/12, identical exception