{
 "schema": "3da-format-benchmark/v1",
 "title": "3D file format size benchmark",
 "created": "2026-11-05",
 "license": "CC0-1.0",
 "method": "Each mesh is generated in code (watertight, millimetres), exact-welded, then written by the 3DA.XYZ mesh engine to each format. Sizes are exact byte counts of the written files. gzipBytes = gzip level 6 of that file (a proxy for HTTP compression). 3mf = stored (uncompressed) ZIP as written by the engine; 3mf-deflate = the same three parts re-packed with raw DEFLATE level 6, as typical 3MF exporters do. Every file is parsed back and checked for identical triangle count, closure and volume.",
 "caveats": [
  "Sizes depend on the writer: number formatting (6 decimals here), headers, indexing and metadata. Other applications will produce different byte counts for the same geometry.",
  "OBJ and PLY here store indexed vertices; STL stores three corners per triangle.",
  "GLB here stores positions + 16/32-bit indices and one material; no normals, UVs or textures.",
  "The 3DA.XYZ Studio and converter download the deflate variant of 3MF when the browser supports CompressionStream."
 ],
 "environment": {
  "node": "v22.23.4",
  "engine": "ax-mesh.js",
  "engineSha256": "5097bda723dbb76ce92fb4613c46a87cd3fb549a4c7ac93de3cdc31314633a30",
  "scriptSha256": "3b52af7ce75d763a9a0833ef12cbdc6c286feec6e9432a8ae723fbb482f6c6c7"
 },
 "formats": {
  "stl": "STL binary",
  "stl-ascii": "STL ASCII",
  "obj": "OBJ (indexed)",
  "ply": "PLY binary little-endian",
  "glb": "GLB (glTF 2.0 binary)",
  "3mf": "3MF (stored ZIP)",
  "3mf-deflate": "3MF (deflate ZIP)"
 },
 "rows": [
  {
   "id": "cube-20",
   "label": "20 mm cube",
   "triangles": 12,
   "vertices": 8,
   "volumeMm3": 8000,
   "bytes": {
    "stl": 684,
    "stl-ascii": 1555,
    "obj": 283,
    "ply": 478,
    "glb": 1028,
    "3mf": 2008,
    "3mf-deflate": 1106
   },
   "gzipBytes": {
    "stl": 173,
    "stl-ascii": 193,
    "obj": 184,
    "ply": 260,
    "glb": 566,
    "3mf": 719,
    "3mf-deflate": 980
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s6",
   "label": "20 mm UV sphere, 6 segments",
   "triangles": 24,
   "vertices": 14,
   "volumeMm3": 2598.0763,
   "bytes": {
    "stl": 1284,
    "stl-ascii": 3705,
    "obj": 551,
    "ply": 712,
    "glb": 1184,
    "3mf": 2691,
    "3mf-deflate": 1220
   },
   "gzipBytes": {
    "stl": 339,
    "stl-ascii": 351,
    "obj": 269,
    "ply": 341,
    "glb": 685,
    "3mf": 834,
    "3mf-deflate": 1102
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s8",
   "label": "20 mm UV sphere, 8 segments",
   "triangles": 48,
   "vertices": 26,
   "volumeMm3": 3218.9514,
   "bytes": {
    "stl": 2484,
    "stl-ascii": 8081,
    "obj": 1053,
    "ply": 1168,
    "glb": 1472,
    "3mf": 4033,
    "3mf-deflate": 1411
   },
   "gzipBytes": {
    "stl": 548,
    "stl-ascii": 601,
    "obj": 407,
    "ply": 504,
    "glb": 846,
    "3mf": 1035,
    "3mf-deflate": 1301
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s12",
   "label": "20 mm UV sphere, 12 segments",
   "triangles": 120,
   "vertices": 62,
   "volumeMm3": 3732.0509,
   "bytes": {
    "stl": 6084,
    "stl-ascii": 20215,
    "obj": 2523,
    "ply": 2538,
    "glb": 2340,
    "3mf": 8023,
    "3mf-deflate": 1949
   },
   "gzipBytes": {
    "stl": 1388,
    "stl-ascii": 1303,
    "obj": 797,
    "ply": 889,
    "glb": 1263,
    "3mf": 1587,
    "3mf-deflate": 1828
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s16",
   "label": "20 mm UV sphere, 16 segments",
   "triangles": 224,
   "vertices": 114,
   "volumeMm3": 3926.5965,
   "bytes": {
    "stl": 11284,
    "stl-ascii": 42683,
    "obj": 5562,
    "ply": 4515,
    "glb": 3592,
    "3mf": 14697,
    "3mf-deflate": 2769
   },
   "gzipBytes": {
    "stl": 2677,
    "stl-ascii": 2397,
    "obj": 1454,
    "ply": 1485,
    "glb": 1877,
    "3mf": 2421,
    "3mf-deflate": 2609
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s24",
   "label": "20 mm UV sphere, 24 segments",
   "triangles": 528,
   "vertices": 266,
   "volumeMm3": 4070.5523,
   "bytes": {
    "stl": 26484,
    "stl-ascii": 99331,
    "obj": 13465,
    "ply": 10291,
    "glb": 7240,
    "3mf": 33239,
    "3mf-deflate": 5306
   },
   "gzipBytes": {
    "stl": 6474,
    "stl-ascii": 5826,
    "obj": 3355,
    "ply": 3187,
    "glb": 3792,
    "3mf": 5035,
    "3mf-deflate": 4829
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s32",
   "label": "20 mm UV sphere, 32 segments",
   "triangles": 960,
   "vertices": 482,
   "volumeMm3": 4121.9418,
   "bytes": {
    "stl": 48084,
    "stl-ascii": 190675,
    "obj": 26569,
    "ply": 18499,
    "glb": 12428,
    "3mf": 61463,
    "3mf-deflate": 8687
   },
   "gzipBytes": {
    "stl": 11827,
    "stl-ascii": 10934,
    "obj": 6146,
    "ply": 5551,
    "glb": 6614,
    "3mf": 8473,
    "3mf-deflate": 7139
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s48",
   "label": "20 mm UV sphere, 48 segments",
   "triangles": 2208,
   "vertices": 1106,
   "volumeMm3": 4158.9714,
   "bytes": {
    "stl": 110484,
    "stl-ascii": 437883,
    "obj": 62155,
    "ply": 42213,
    "glb": 27408,
    "3mf": 140723,
    "3mf-deflate": 18835
   },
   "gzipBytes": {
    "stl": 27949,
    "stl-ascii": 25600,
    "obj": 14145,
    "ply": 12580,
    "glb": 15403,
    "3mf": 18665,
    "3mf-deflate": 13252
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s64",
   "label": "20 mm UV sphere, 64 segments",
   "triangles": 3968,
   "vertices": 1986,
   "volumeMm3": 4171.9957,
   "bytes": {
    "stl": 198484,
    "stl-ascii": 801287,
    "obj": 119211,
    "ply": 75653,
    "glb": 48528,
    "3mf": 259379,
    "3mf-deflate": 34186
   },
   "gzipBytes": {
    "stl": 51631,
    "stl-ascii": 46934,
    "obj": 26733,
    "ply": 22313,
    "glb": 26463,
    "3mf": 34031,
    "3mf-deflate": 22019
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s96",
   "label": "20 mm UV sphere, 96 segments",
   "triangles": 9024,
   "vertices": 4514,
   "volumeMm3": 4181.3192,
   "bytes": {
    "stl": 451284,
    "stl-ascii": 1821927,
    "obj": 279291,
    "ply": 171717,
    "glb": 109200,
    "3mf": 596419,
    "3mf-deflate": 74063
   },
   "gzipBytes": {
    "stl": 121131,
    "stl-ascii": 110550,
    "obj": 58418,
    "ply": 50351,
    "glb": 59808,
    "3mf": 73882,
    "3mf-deflate": 38833
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s128",
   "label": "20 mm UV sphere, 128 segments",
   "triangles": 16128,
   "vertices": 8066,
   "volumeMm3": 4184.5864,
   "bytes": {
    "stl": 806484,
    "stl-ascii": 3281101,
    "obj": 508222,
    "ply": 306695,
    "glb": 194452,
    "3mf": 1073991,
    "3mf-deflate": 132457
   },
   "gzipBytes": {
    "stl": 221036,
    "stl-ascii": 201498,
    "obj": 107420,
    "ply": 90445,
    "glb": 98533,
    "3mf": 132347,
    "3mf-deflate": 69652
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s192",
   "label": "20 mm UV sphere, 192 segments",
   "triangles": 36480,
   "vertices": 18242,
   "volumeMm3": 4186.9214,
   "bytes": {
    "stl": 1824084,
    "stl-ascii": 7418397,
    "obj": 1205840,
    "ply": 693384,
    "glb": 438680,
    "3mf": 2483923,
    "3mf-deflate": 290824
   },
   "gzipBytes": {
    "stl": 537526,
    "stl-ascii": 506938,
    "obj": 240573,
    "ply": 209587,
    "glb": 246464,
    "3mf": 290700,
    "3mf-deflate": 131450
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  },
  {
   "id": "sphere-20-s256",
   "label": "20 mm UV sphere, 256 segments",
   "triangles": 65024,
   "vertices": 32514,
   "volumeMm3": 4187.7389,
   "bytes": {
    "stl": 3251284,
    "stl-ascii": 13272805,
    "obj": 2209728,
    "ply": 1235720,
    "glb": 781208,
    "3mf": 4486851,
    "3mf-deflate": 548981
   },
   "gzipBytes": {
    "stl": 971090,
    "stl-ascii": 961735,
    "obj": 451876,
    "ply": 360362,
    "glb": 367590,
    "3mf": 548818,
    "3mf-deflate": 241354
   },
   "roundTrip": {
    "stl": true,
    "stl-ascii": true,
    "obj": true,
    "ply": true,
    "glb": true,
    "3mf": true,
    "3mf-deflate": true
   },
   "stlFormulaHolds": true
  }
 ]
}