Projection scorecard
Complete Node / Chromium / Firefox / WebKit evidence.
Comparator: proj4js 2.22.0; math.gl 5.0.0-alpha.12. Each environment retains its own hardware, version, date and sampling settings. Results are observed measurements, with no overall SOTA ranking.
This snapshot includes three-sample diagnostic timings. Use the full measurement profile for performance decisions; short runs can show substantial variation.
Source fingerprint: b701953e7365f8fe9352784b1a44685b30bcc6ef3a7addab55408564008e5bf2. Workload fingerprint: 431578e2deba15f5c55c55f37ec772a40dd889dbb371b5da72a0821eb52efde5.
Full measurements and raw samples: machine-readable snapshot. Collection commit: 2b7b741581f6a3eeddc3d2636089a1239f454bd1. See publication provenance for the generating CI run and raw artifacts.
Accuracyโ
The independent pyproj 3.7.2 / PROJ 9.5.1 corpus covers 42 domains / 11160 points. Worst observed errors include scalar and Float64 bulk paths. See accuracy domains for geographic bounds, allowances and oracle limits.
| Environment | Maximum forward component error (m) | Maximum inverse component error (degrees) |
|---|---|---|
| node | 0.0000209 | 1.42e-8 |
| chromium | 0.0000209 | 1.42e-8 |
| firefox | 0.0000209 | 1.42e-8 |
| webkit | 0.0000209 | 1.42e-8 |
Prepared throughputโ
Selected Float64 XYZM forward cases, in million points/second. All precisions, XY/XYZ/XYZM, directions and scenarios, raw samples, p10/p90 and iteration counts are retained in the machine-readable scorecard. A dagger marks timer-limited or high-variation rows; their ratios are withheld. No environment is pooled with another.
node v24.14.0โ
Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz; linux/x64; 2026-10-04T20:31:35.161Z. 2000 points, 3 samples, minimum aggregate window 4 ms.
| Case | math.gl flat | math.gl scalar | proj4js 2.22.0 |
|---|---|---|---|
| Web Mercator | 10.7 M (4.87ร) | 6.58 M (2.98ร) | 2.21 M |
| UTM 31N | 3.30 M (2.25ร) | 2.84 M (1.93ร) | 1.47 M |
| Lambert conformal conic | 9.15 M (4.39ร) | 6.01 M (2.88ร) | 2.08 M |
| Seven-parameter datum shift | 2.60 M (1.80ร) | 2.30 M (1.59ร) | 1.44 M |
| NTv2 horizontal grid | 6.13 M (13.4ร) | 4.91 M (10.8ร) | 0.457 M |
chromium 151.0.7922.34โ
Intel(R) Xeon(R) 6973P-C; linux/x64; 2026-10-04T20:30:56.726Z. 20000 points, 3 samples, minimum aggregate window 4 ms.
| Case | math.gl flat | math.gl scalar | proj4js 2.22.0 |
|---|---|---|---|
| Web Mercator | 14.6 M (3.54ร) | 10.2 M (2.46ร) | 4.14 M |
| UTM 31N | 3.57 M (1.79ร) | 3.17 M (1.59ร) | 2.00 M |
| Lambert conformal conic | 10.7 M (3.18ร) | 8.00 M (2.37ร) | 3.37 M |
| Seven-parameter datum shift | 2.94 M (1.40ร) | 2.78 M (1.32ร) | 2.11 M |
| NTv2 horizontal grid | 7.55 M (9.51ร) | 6.56 M (8.26ร) | 0.794 M |
firefox 153.0โ
AMD EPYC 7763 64-Core Processor; linux/x64; 2026-10-04T20:31:36.746Z. 20000 points, 3 samples, minimum aggregate window 4 ms.
| Case | math.gl flat | math.gl scalar | proj4js 2.22.0 |
|---|---|---|---|
| Web Mercator | 10.0 M (4.25ร) | 5.00 M (2.13ร) | 2.35 M |
| UTM 31N | 2.86 M (2.00ร) | 2.22 M (1.56ร) | 1.43 M |
| Lambert conformal conic | 6.67 M (3.00ร) | 4.00 M (1.80ร) | 2.22 M |
| Seven-parameter datum shift | 2.22 M (1.56ร) | 1.82 M (1.27ร) | 1.43 M |
| NTv2 horizontal grid โ | 5.00 M | 3.33 M | 0.488 M |
webkit 26.5โ
AMD EPYC 7763 64-Core Processor; linux/x64; 2026-10-04T20:32:03.863Z. 20000 points, 3 samples, minimum aggregate window 4 ms.
| Case | math.gl flat | math.gl scalar | proj4js 2.22.0 |
|---|---|---|---|
| Web Mercator | 10.0 M (3.50ร) | 5.71 M (2.00ร) | 2.86 M |
| UTM 31N | 4.00 M (2.40ร) | 2.50 M (1.50ร) | 1.67 M |
| Lambert conformal conic | 6.67 M (2.67ร) | 4.44 M (1.78ร) | 2.50 M |
| Seven-parameter datum shift | 2.22 M (1.33ร) | 2.00 M (1.20ร) | 1.67 M |
| NTv2 horizontal grid | 3.33 M (5.83ร) | 2.50 M (4.38ร) | 0.571 M |
Cold startupโ
Node uses a fresh process per sample; browser samples use fresh contexts and minified bundles. Module times include their respective import/fetch/parse/evaluate paths. OS disk caches are not flushed. Node math.gl imports core plus Mercator; the browser imports the convenience Projection bundle. Node and browser cold paths are different experiments.
| Environment | math.gl module median (ms) | proj4js module median (ms) |
|---|---|---|
| node | 25.5 | 15.0 |
| chromium | 12.2 | 13.2 |
| firefox | 29.0 | 26.0 |
| webkit | 10.0 | 13.0 |
Allocation and memoryโ
Node heap sampling includes collected objects and reports estimated bytes per point; its 4 KiB sampling interval cannot prove zero allocation. Isolated Node memory samples force GC twice at each of four checkpoints: before imports, after preparation, after allocating two live Float64 XYZM buffers, and after ten Web Mercator batches. The buffers occupy 128000 bytes in each sample. Retained heap/RSS is distinct from temporary allocation and peak working set.
| Implementation | Web Mercator XYZM sampled bytes/point | Steady heapUsed median (bytes) | Steady RSS median (bytes) |
|---|---|---|---|
| math.gl flat | 0 | 4.44e+6 | 6.12e+7 |
| math.gl scalar | 83.8 | 4.48e+6 | 6.36e+7 |
| proj4js 2.22.0 | 899 | 5.45e+6 | 6.08e+7 |
Browser JS heap/allocation values are unavailable, not zero. Each throughput row records exact input-buffer bytes only; this excludes adaptive copies, output/result objects, libraries and the rest of an application.
Bundle costsโ
math.gl 5.0.0-alpha.12, from the source-matched snapshot above. For current import choices and split-bundle measurements, see imports, plugins and loading.
browser ESM, es2020, minified, gzip level 9; Node v24.14.0. Selective modules exclude model data and external TIFF decoders.
| Retained entry | Minified bytes | Gzip bytes |
|---|---|---|
| temporalModel | 9256 | 3646 |
| projectionBulk | 5469 | 1721 |
| projectionAnalysis | 4329 | 1445 |
| core | 52183 | 19018 |
| mercator | 54693 | 19817 |
| utm | 61521 | 22539 |
| mercatorWithWKT | 78606 | 27628 |
| mercatorWithPROJJSON | 65820 | 23611 |
| mercatorWithNTv2 | 57895 | 21137 |
| mercatorWithGeoTIFFAdapter | 57901 | 21068 |
| mercatorWithGTX | 56235 | 20519 |
| mercatorWithVerticalGeoTIFF | 59756 | 21706 |
| deformationModel | 7403 | 3025 |
| deformationWithGeoTIFF | 12512 | 4847 |
| operationCatalog | 6489 | 2297 |
| operationPipeline | 64096 | 23036 |
| typescriptWrapper | 153061 | 52509 |
| allNativeExports | 184292 | 62737 |
Interpret and reproduceโ
- No pooled environments or overall SOTA ranking.
- Observed domain samples are not global accuracy guarantees.
- Throughput excludes preparation and buffer resets; startup is separate.
- Timing-limited or unstable rows have no advertised speedup.
- Heap sampling estimates allocations; zero estimates do not prove zero allocation.
- Memory checkpoints are retained state/RSS, not peak memory.
- Browser owned input bytes are a storage lower bound, not JS heap or total working set.
See measurement commands and provenance, live browser benchmarks and worker crossover measurements.
Reproductionโ
The published scorecard consolidates source-matched measurements for Node, Chromium, Firefox and WebKit. Each environment remains separate. It does not produce an overall ranking or claim unrestricted PROJ parity.
What is measuredโ
| Category | Evidence and limits |
|---|---|
| Accuracy | 42 reviewed independent PROJ domains / 11,160 points; scalar and Float64 bulk forward/inverse/closure, maximum errors and worst inputs. These are sampled domains, not global error bounds. |
| Throughput | The same 22 seeded scenarios, both precisions, XY/XYZ/XYZM and both directions. Prepared converters, rotated order, independent buffers, raw times, median/p10/p90 and normalization by iteration count. Preparation and resets are excluded. |
| Startup | Fresh Node processes or browser contexts, with import, first construction and first transformation checked separately. Browser cold bundles and Node module graphs differ; OS disk caches are not flushed. |
| Allocation | Node inspector heap sampling includes collected objects, in Float64 XY/XYZM forward cases. Estimated bytes/point and sample counts are retained. A zero estimate is not proof of zero allocation. |
| Memory | Fresh Node processes, forced GC checkpoints, identical live input/output Float64 XYZM buffers, and ten Web Mercator batches. Retained heap/external/arrayBuffer/RSS snapshots are not peak working set or allocation counts. |
| Bundle | Built browser ESM, ES2020, minified and gzip level 9. Actual byte counts cover selective entry points; external model data and TIFF decoders are excluded. |
Browser JS heap and collected-object allocation metrics are unavailable in this portable profile. Every throughput row includes exact input-buffer bytes, a storage lower bound that excludes adaptive copies, result objects, library memory and other application costs. It must not be interpreted as the browser's working set.
Collect a full profileโ
Build the package first. Measurement scripts do not fetch models or dependencies. The comparator is the actual installed proj4js 2.22.0, matching the exact reviewed development pin; reports record its version and installed main-entry content hash.
yarn exec ocular-build projection
node modules/geospatial/scripts/projection/collect-scorecard-node.mjs \
--directory /tmp/projection-scorecard-node --points 20000 --samples 7 --min-sample-ms 12
node modules/geospatial/scripts/projection/benchmark-browser.mjs \
--browsers chromium,firefox,webkit --points 20000 --samples 7 --min-sample-ms 12 \
--output /tmp/projection-scorecard-browsers.json
node modules/geospatial/scripts/projection/scorecard.mjs \
--node /tmp/projection-scorecard-node \
--browser-report /tmp/projection-scorecard-browsers.json \
--output /tmp/projection-scorecard.json --markdown /tmp/projection-scorecard.md
Separate browser report files can be supplied with repeated --browser-report
arguments. Hardware, OS, runtime versions, observation dates, point counts and
sampling windows remain attached to each environment. There is no pooling across
machines, browsers or workload layouts. PR CI uses three samples and a bounded
4 ms aggregate window; master keeps the seven-sample/12 ms profile. PR observations
are validation diagnostics and can show more variation than a dedicated full run.
Publication gatesโ
The Node input manifest hashes every raw report and snapshots the reviewed accuracy profile. Consolidation requires matching source/workload fingerprints, comparator identity, the complete layout matrix, accuracy domains and numerical allowances, raw sample counts, median normalization, cold samples, allocation/memory inventories and bundle profiles. Mismatched or missing evidence fails instead of filling gaps. The generator's hash and every raw input report hash accompany the output.
Timer-limited or high-variation rows remain visible, but their speedup ratios are withheld. Variation is descriptive, not a confidence interval. Different epoch, layout, coordinate distribution, operation chain or compiler settings can change results. No threshold declares a universal winner, a globally accurate projection, zero allocation or a SOTA engine.
All three browsers are required by default. --allow-partial is available for local
work; it visibly marks missing environments and cannot produce a complete scorecard
claim. CI never passes that option. The publication job consolidates uploaded Node
and browser evidence, retains JSON/Markdown artifacts and is a required check.
The checked-in snapshot retains raw throughput samples, independent errors, memory
checkpoints and allocation estimates in
scorecard.json.
It is a dated baseline, not a promise that later source changes preserve its timings.
Regenerate a snapshot from one explicitly identified source/workload and review its
limits before replacing it. CI artifacts provide subsequent source-matched runs.
node --test modules/geospatial/scripts/projection/scorecard.test.mjs
node modules/geospatial/scripts/projection/benchmark-memory.mjs --points 20000 --samples 3 --output /tmp/memory.json
To regenerate the documentation from the checked-in scorecard without rerunning measurements:
node --input-type=module -e "import {readFileSync,writeFileSync} from 'node:fs'; import {renderScorecard} from './modules/geospatial/scripts/projection/scorecard.mjs'; writeFileSync('docs/modules/geospatial/projection/scorecard.md', renderScorecard(JSON.parse(readFileSync('modules/geospatial/test/projection/fixtures/qualification/scorecard.json','utf8'))));"