Paniolo and Mustangproject, measured.
Paniolo 1.4.0 against Mustangproject 2.26.0: the official release binaries, called as Java libraries, with synthetic invoices, a corpus of 2,423 public documents, parallel load and very large invoices. Results come with their limits.
Summary
- In 14 of 15 measured task/size combinations Paniolo has a lower mean time, and in 15 of 15 it allocates less heap. With 100 lines, CII import takes 1.096 ms (Paniolo) against 20.478 ms (Mustang), XML validation including the XML report 10.516 ms against 74.531 ms.
- The one exception is XML extraction from a one-line PDF (0.163 ms against 0.154 ms).
- Under parallel load (24 real CII invoices; validate, or read, write and validate again) Paniolo reaches 4.0 to 5.4 times the throughput of Mustang with the same heap size. All 36 load phases completed without errors.
- Eight separate Paniolo instances in one 512 MiB JVM completed both repeats. Since 1.3.0 the compiled packaged rules are shared by all instances of a class loader. Validation reaches 3,815.6 successes/s with a P95 of 8.89 ms (Mustang: 865.8/s, 21.67 ms). Two separate diagnostic runs counted no compilation during the measurement phase. See memory and heap sizing.
- Order-X: both libraries extract all 24 Order-X documents of the corpus, with byte-identical XML. Paniolo uses
extractOrderXml(byte[])for this; the invoice methodextractXml(byte[])rejects them on purpose. - Memory: no document of either library ran out of memory in the normal corpus runs with 512 MiB or 2 GiB heaps.
- Very large invoices: Paniolo completed valid round trips of both UBL invoices: 24.5 MiB in 48.7 s and 58.3 MiB in 265.6 s. Mustang exceeded the five-minute limit of this setup on both: during original validation for the larger invoice, and output validation for the smaller one.
- Compared with 1.3.0, four values in nine selected functional features changed across two of the 2,076 XML documents: the EXTENDED buyer-description example can now be written with a valid output, and the large invoice has a completed output verdict instead of a timeout.
- Speed advantages of single tasks are not a general speed guarantee. The figures apply to the tasks, sizes and configuration described below.
Setup
| Hardware | Apple M4 Max, 16 cores, 128 GiB, macOS 27.2.1 (arm64) |
| Java | Temurin 21.0.12.1, JMH 1.37, UTF-8, headless AWT |
| Heap | -Xms512m -Xmx512m for corpus, microbenchmark and load runs; additional 2 GiB runs for both libraries; 12 GiB for the two very large invoices |
| Microbenchmarks | 5 functions x 3 sizes (1, 100, 1,000 lines) x 2 libraries x 2 independent JVMs, plus 12 JVMs for extraction from shared PDF references: 72 measurement JVMs; 3 warm-up and 5 measurement intervals of 1 s; heap allocation per operation from the GC profiler |
| Load | 24 CII invoices (2.2 to 69.3 KiB, unchanged selection), 1, 4 and 8 workers, 2 JVM repeats with alternating library order, 5 s warm-up, 20 s measurement |
| Corpus | 2,423 distinct XML and PDF candidates (1,815 XML files and 608 PDFs, unchanged), from public corpora, older originals, local regression inputs and attachments of known Mustang issues |
| Validation | Each library with its own packaged rules; the optional additional arithmetic check is off for both in the timing runs |
The validators are not reconfigured to an identical rule package. The figures compare the native API task with the rules and pre-checks each library ships, not the XSLT engine alone. The workstation was not isolated (one-minute load 4.4 to 20.6, median 7.7); the results are workstation measurements with the stated spread, not a hardware benchmark. The seven native Java drivers and all benchmark and load input bytes are unchanged from the 1.3.0 study.
Time and heap allocation
Smaller is better. Factor M/P = Mustang time / Paniolo time; above 1 favours Paniolo. KiB/op is newly allocated heap, not retained memory.
| Task | Lines | Paniolo ms/op | Mustang ms/op | Factor M/P | Paniolo KiB/op | Mustang KiB/op |
|---|---|---|---|---|---|---|
| CII import | 1 | 0.100 | 1.505 | 15.05 | 310.4 | 16,093.6 |
| CII import | 100 | 1.096 | 20.478 | 18.68 | 3,224.3 | 28,859.2 |
| CII import | 1,000 | 10.739 | 200.094 | 18.63 | 29,631.1 | 153,412.4 |
| CII generation | 1 | 0.049 | 0.071 | 1.45 | 183.1 | 205.7 |
| CII generation | 100 | 0.578 | 0.937 | 1.62 | 2,146.2 | 3,590.6 |
| CII generation | 1,000 | 5.061 | 9.299 | 1.84 | 18,910.8 | 35,738.1 |
| XML validation + XML report | 1 | 0.588 | 6.537 | 11.13 | 1,451.0 | 14,350.7 |
| XML validation + XML report | 100 | 10.516 | 74.531 | 7.09 | 19,148.7 | 187,711.4 |
| XML validation + XML report | 1,000 | 108.213 | 854.768 | 7.90 | 176,408.3 | 1,820,571.8 |
| XML from PDF | 1 | 0.163 | 0.154 | 0.95 | 370.0 | 529.7 |
| XML from PDF | 100 | 0.235 | 0.719 | 3.06 | 1,318.4 | 2,804.1 |
| XML from PDF | 1,000 | 0.923 | 5.930 | 6.43 | 9,028.2 | 21,641.0 |
| XML + PDF embedding | 1 | 0.290 | 0.503 | 1.74 | 831.8 | 1,404.6 |
| XML + PDF embedding | 100 | 1.306 | 1.893 | 1.45 | 3,236.7 | 5,128.9 |
| XML + PDF embedding | 1,000 | 10.066 | 14.652 | 1.46 | 24,003.6 | 39,958.7 |
The PDF tasks use the same prepared PDF/A templates (1, 4 and 31 pages) for both libraries. The extraction table uses identical frozen reference PDF bytes for both libraries; measurements of each library's own output container are supplementary. "XML + PDF embedding" covers XML creation and embedding into an existing template, without layout rendering or file I/O. The report of Paniolo's validation result is serialized to XML inside the measurement; the scope of both reports is similar but not identical. Quotients of very short operations are sensitive to workstation load and JIT effects.
Against Paniolo 1.3.0
100 lines, ms per operation. The 1.3.0 values are from 29 November 2026 and were not measured again; the new study is from 6 December. Mustang was measured in both studies.
| Task | Paniolo 1.3.0 | Paniolo 1.4.0 | Mustang, earlier / now |
|---|---|---|---|
| CII import | 1.121 | 1.096 | 20.770 / 20.478 |
| CII generation | 0.575 | 0.578 | 0.956 / 0.937 |
| XML validation + XML report | 10.297 | 10.516 | 73.889 / 74.531 |
| XML from PDF | 0.241 | 0.235 | 0.767 / 0.719 |
| XML + PDF embedding | 1.314 | 1.306 | 1.888 / 1.893 |
The differences are within the range that workstation and JVM effects also produce; they are no isolated proof of a speed change between the releases. The shared-cache behaviour introduced in 1.3.0 remains in 1.4.0 and is checked separately under parallel load. The complete table is in release-comparison.csv.
Parallel load
24 original CII invoices, one 512 MiB heap per JVM shared by all workers, one engine per worker. A: validate. B: read strictly, write CII, validate the written CII. Throughput in successful operations per second.
| Flow | Workers | Paniolo ops/s | Mustang ops/s | Paniolo P95 ms | Mustang P95 ms |
|---|---|---|---|---|---|
| A: validate | 1 | 539.6 | 134.3 | 7.59 | 18.50 |
| A: validate | 4 | 1,963.4 | 483.7 | 8.72 | 20.83 |
| A: validate | 8 | 3,815.6 | 865.8 | 8.89 | 21.67 |
| B: read, write, validate | 1 | 455.5 | 103.7 | 8.72 | 22.11 |
| B: read, write, validate | 4 | 1,662.2 | 349.6 | 10.01 | 25.90 |
| B: read, write, validate | 8 | 3,223.1 | 595.0 | 10.21 | 30.35 |
With eight separate instances in one 512 MiB JVM, the historical 1.1.0 study lost one measurement phase to an OutOfMemoryError and showed second-long latencies, because every instance compiled and held its own copy of the rules. Since 1.3.0 the instances share the compiled packaged rules. Two additional diagnostic runs of 60 s with 1.4.0 read the counters of the shared cache: five compilations during warm-up, none during measurement, 3.62 % and 3.63 % of the time in GC pauses and no full GC or JFR data loss. The cache holds at most eight validators strongly at 512 MiB and compiles one at a time; rules configured with a custom directory stay with their instance. Other configurations, each with separately stated total JVM heap and instance setup:
| Setup | Flow | Paniolo ops/s | Mustang ops/s |
|---|---|---|---|
| 8 workers, 2 GiB, one instance per worker | A: validate | 3,740.2 | 848.0 |
| 8 workers, 2 GiB, one instance per worker | B: read, write, validate | 3,210.9 | 617.9 |
| 8 workers, 512 MiB, one shared Paniolo facade | A: validate | 3,749.8 | n/a |
| 8 workers, 512 MiB, one shared Paniolo facade | B: read, write, validate | 3,220.6 | n/a |
With 1.4.0, separate instances, a shared facade and a larger heap reach similar throughput in this document mix. A larger heap does not improve throughput here. The facade remains thread-safe and can still be reused as a singleton. CPU per success, peak RSS and the spread of both repeats are in load-results.csv. This is a time-limited parallel run, not a soak test.
Corpus runs
Both libraries were run again on the unchanged inputs.
| Paniolo 1.4.0 | Mustang 2.26.0 | |
|---|---|---|
| PDFs where the matching API returns XML (of 608) | 433 | 432 |
| of these, invoice XML | 409 | 408 |
| of these, Order-X XML (separate API) | 24 | 24 |
| Invoice XML candidates validated | 2,046 | 2,051 |
| valid / invalid by each library's own rules | 977 / 1,069 | 987 / 1,064 |
| Strict import succeeded | 1,399 | 1,681 |
| Lenient import succeeded | 1,911 | 2,034 |
| CII output written | 1,653 | 2,024 |
| Written CII valid by the library's own validator | 1,244 | 615 |
| Aborted documents (very large invoices, time limit) | 0 | 2 |
The 24 Order-X documents are eight orders, 14 order responses and two order changes. The extraction of both libraries is byte-identical; the check covers extraction only, not the full field fidelity of orders or Order-X performance. A higher number of accepted documents does not prove higher correctness: rule generations, legacy profiles and the handling of warnings differ. This study does not arbitrate every individual difference; all differing verdicts are in the raw data of the study. Compared with 1.3.0 on identical input bytes, nine selected functional features (original verdict, import flags, warning counts, common core values, output success, exact output hash and output verdict) have four changed values in two documents. The valid public EXTENDED_comprehensive.xml can now be written without rejecting the buyer description; the written CII is valid. The 63,404-line invoice now has a completed valid output verdict, which was missing after the earlier timeout. Original validation verdicts are unchanged. This comparison does not establish full fidelity of every model field.
Run time of the full normal corpus (up to 8 MiB):
| Heap | Paniolo | Mustang |
|---|---|---|
| 512 MiB | 25.5 s | 71.6 s |
| 2 GiB | 22.5 s | 65.6 s |
The runs contain successful and rejected inputs, file I/O and report writing, so no isolated speed factor is derived from them. Logger settings are the same for both heap sizes in this study; they differed in the historical 1.3.0 corpus runs. With 512 MiB and with 2 GiB no document of either library ran out of memory (corpus-2gib.csv).
Very large invoices
Two public UBL examples, each library with 12 GiB heap and a five-minute limit per document.
| Size / lines | Library | Validation s | Strict read s | CII write s | Validate written s | Total s | Status |
|---|---|---|---|---|---|---|---|
| 58.29 MiB / 63,404 | Paniolo | 62.53 | 0.79 | 0.72 | 200.47 | 265.6 | valid round trip |
| 58.29 MiB / 63,404 | Mustang | – | – | – | – | 300.2 | timeout during original validation |
| 24.50 MiB / 26,813 | Paniolo | 12.41 | 0.38 | 0.32 | 35.06 | 48.7 | valid round trip |
| 24.50 MiB / 26,813 | Mustang | 161.68 | 6.30 | 0.41 | – | 300.1 | timeout in the validation of the written CII |
A timeout describes this configuration and is not a statement that the document cannot be processed with other limits; it gives no verdict, not an invalid one. In the 1.3.0 study the 58.29 MiB invoice reached the limit during output validation; this time Paniolo completed it in 265.6 s. The historical workstation runs do not isolate an effect of the library version. Paniolo's peak RSS was 2.0 GiB for the smaller invoice and 5.3 GiB for the larger one. For the Mustang processes ended by the limit only sampled lower bounds are known.
Known Mustang issues
The open and closed Mustang issues (783 at the review day of 27 November, 147 open) were indexed, and 37 targeted Paniolo probes for the issues #1354 to #1359 (UBL party names, VAT and tax identifiers, payment means, payment text, attachment description, multiple seller identifiers) all passed again against Paniolo 1.4.0. The probes show how Paniolo behaves for these documents; they do not claim a separate new reproduction run for each Mustang report. Mustang's CII-to-UBL conversion of a valid single-reference credit note (#1362) produced a document that an independent validation did not accept, whereas Paniolo writes UBL credit notes directly. An index entry is not an individually reproduced or fixed defect.
Structured due date (F01): a UBL credit note with only PaymentTerms/PaymentDueDate is read with its due date by Paniolo since 1.1.0; with 1.4.0 again in all three read modes (six imports, twelve date-preserving round trips, three conflict controls checked). Conflicting dates are rejected by strict reading and reported as READ-DUE-DATE by the lenient modes; the official warning UBL-CR-463 stays in the validation report. Mustang 2.26.0 still accepts the document and reads no due date.
Documented limits, unchanged: Paniolo does not implement VAT category B (Italian split payment), does not yet select the language of official Schematron messages, and does not claim support for EN 16931:2026 or XRechnung 4.0.
Releasing and CI
Paniolo's release run of 1.4.0 covers verify on Java 21 and 25, the invoice corpus, browser tests, security scan (build breaks at CVSS 7, data at most 14 days old), release dry run, deployment to Maven Central and GitHub Packages, SBOMs, checksums, provenance and published test evidence (1,321 test cases per Java job including 3 skipped, 0 failures; 48 browser test cases). The 599 files of the published evidence were hash-checked and the test counts independently recounted. These are published CI results, not new local module-test runs. The Mustang workflow reviewed in the earlier study of 29 November builds and tests with one Java version and has no comparable public release job; non-public Mustang processes are not assessed. A workflow shows traceable steps; it does not prove fewer production defects. Release immutability is off for both releases.
Limits of the results
- The figures describe the stated tasks, input sizes, heap sizes and the workstation. They are no universal factor and no statement about every profile or document.
- Different rule releases, report scope and warning handling mean that validity counts are not a correctness ranking. Whether a document is "readable" is neither "valid" nor "lossless".
- The shared rule cache introduced in 1.3.0 removes the duplicate copies of separate instances. It does not remove the memory demand of the active validators; a heap that does not hold the rule sets in use still leads to repeated compilation.
- Two load repeats of 20 s and two diagnostic runs of 60 s are no soak test and no isolation or leak test.
- For capacity planning, repeat the measurements with the document sizes and profiles of the target application. Large documents and unexplained corpus differences deserve their own acceptance criteria.
- For the choice between the libraries by functions, Java baseline and migration effort, see the feature comparison.