{
  "date": "2026-10-27",
  "baseline_revision": "7a6a790e0e885e76ea1360704d6ae92fd86b6f5b",
  "machine": {
    "cpu": "Apple M4 Pro",
    "logical_cpus": 14,
    "os": "macOS aarch64",
    "jdk": "17.0.12+8-LTS-286",
    "flink": "2.2.1",
    "rust": "1.94.0",
    "profile": "release, no-default-features, system allocator, counting allocation wrapper in prepared-input example"
  },
  "method": {
    "prepared_inputs": "stock generated Java on prebuilt GenericRowData/BinaryRowData; previous/native production Calc on prebuilt Arrow RecordBatch; equal values/types/NULLs; setup/import/export/perimeter conversion excluded; intrinsic previous JVM callback retained; full checksum consumed inside each runtime",
    "warmups": 16,
    "measured_trials": 11,
    "rows_per_trial": 131072,
    "engine_order": "rotates flink/previous/native each trial",
    "timers": "Java stock timer inside Java; previous/native timers inside Rust",
    "pipeline": "1M-row INT source -> unary minus -> rowwise blackhole, parallelism 1, both transposes retained; separate sequential stock/previous/native JVMs; two warmups, five measured jobs; plan and consumed NativeCalc checks",
    "input_nullability": "All logical input schemas are nullable. The nullable CLI flag controls the presence of NULL values: every seventh row when true, none when false."
  },
  "feature": "verified signed integer unary minus in existing native Calc",
  "prepared": [
    {
      "type": "BIGINT",
      "input_nulls": false,
      "binary_rowdata": true,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 43.652854919433594,
          "min": 41.32112121582031,
          "max": 46.586669921875,
          "trials": [
            44.08391571044922,
            44.20503234863281,
            43.28632354736328,
            41.32112121582031,
            43.652854919433594,
            43.16680145263672,
            42.856536865234375,
            44.27973175048828,
            46.586669921875,
            44.31947326660156,
            43.28791046142578
          ]
        },
        "native": {
          "median": 0.5025863647460938,
          "min": 0.47620391845703125,
          "max": 0.5350112915039062,
          "trials": [
            0.5350112915039062,
            0.5054473876953125,
            0.47969818115234375,
            0.5035400390625,
            0.47620391845703125,
            0.4994049072265625,
            0.49908447265625,
            0.505126953125,
            0.5025863647460938,
            0.5089492797851562,
            0.48955535888671875
          ]
        },
        "flink": {
          "median": 6.568267822265625,
          "min": 6.3664093017578125,
          "max": 6.880439758300781,
          "trials": [
            6.5380706787109375,
            6.568267822265625,
            6.4671783447265625,
            6.3664093017578125,
            6.5501556396484375,
            6.784751892089844,
            6.8133697509765625,
            6.743431091308594,
            6.6372528076171875,
            6.522178649902344,
            6.880439758300781
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 8966,
        "shared_output_buffer_bytes": 0,
        "new_output_buffer_bytes": 8192
      }
    },
    {
      "type": "BIGINT",
      "input_nulls": true,
      "binary_rowdata": false,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 42.627655029296875,
          "min": 40.340423583984375,
          "max": 55.61034393310547,
          "trials": [
            40.340423583984375,
            43.393768310546875,
            42.884193420410156,
            41.960716247558594,
            42.627655029296875,
            41.84278106689453,
            43.13055419921875,
            41.04740905761719,
            42.02525329589844,
            55.61034393310547,
            43.22687530517578
          ]
        },
        "native": {
          "median": 0.839874267578125,
          "min": 0.8087158203125,
          "max": 0.86529541015625,
          "trials": [
            0.8351058959960938,
            0.8087158203125,
            0.8525848388671875,
            0.8528976440429688,
            0.823974609375,
            0.86529541015625,
            0.839874267578125,
            0.8560867309570312,
            0.849090576171875,
            0.8258819580078125,
            0.8131637573242188
          ]
        },
        "flink": {
          "median": 4.647575378417969,
          "min": 4.5010223388671875,
          "max": 4.868194580078125,
          "trials": [
            4.587806701660156,
            4.5010223388671875,
            4.787445068359375,
            4.685722351074219,
            4.631996154785156,
            4.868194580078125,
            4.647575378417969,
            4.656791687011719,
            4.69970703125,
            4.585578918457031,
            4.5979766845703125
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 8966,
        "shared_output_buffer_bytes": 128,
        "new_output_buffer_bytes": 8192
      }
    },
    {
      "type": "BIGINT",
      "input_nulls": true,
      "binary_rowdata": true,
      "batch_rows": 16,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 755.6158676147461,
          "min": 750.9587631225586,
          "max": 773.7518920898438,
          "trials": [
            755.6158676147461,
            752.044677734375,
            762.4123840332031,
            754.3926239013672,
            758.6835250854492,
            759.5780715942383,
            773.7518920898438,
            756.5787658691406,
            754.290901184082,
            751.3294219970703,
            750.9587631225586
          ]
        },
        "native": {
          "median": 18.546424865722656,
          "min": 18.169715881347656,
          "max": 18.993377685546875,
          "trials": [
            18.77593994140625,
            18.499374389648438,
            18.546424865722656,
            18.993377685546875,
            18.569313049316406,
            18.80328369140625,
            18.46599578857422,
            18.669761657714844,
            18.169715881347656,
            18.454238891601562,
            18.507957458496094
          ]
        },
        "flink": {
          "median": 5.9541015625,
          "min": 5.889892578125,
          "max": 6.078086853027344,
          "trials": [
            5.9541015625,
            6.078086853027344,
            5.940437316894531,
            5.889892578125,
            5.9941558837890625,
            6.021186828613281,
            5.92645263671875,
            5.957603454589844,
            5.957603454589844,
            5.925811767578125,
            5.9239044189453125
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 902,
        "shared_output_buffer_bytes": 2,
        "new_output_buffer_bytes": 128
      }
    },
    {
      "type": "INT",
      "input_nulls": false,
      "binary_rowdata": true,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 41.87361145019531,
          "min": 41.22161865234375,
          "max": 55.15289306640625,
          "trials": [
            41.53950500488281,
            41.55603790283203,
            41.68828582763672,
            41.22161865234375,
            41.88569641113281,
            41.652992248535156,
            41.87361145019531,
            43.154396057128906,
            44.569969177246094,
            42.723976135253906,
            55.15289306640625
          ]
        },
        "native": {
          "median": 0.4558563232421875,
          "min": 0.43170166015625,
          "max": 0.48955535888671875,
          "trials": [
            0.4558563232421875,
            0.44759368896484375,
            0.4650726318359375,
            0.45172119140625,
            0.43170166015625,
            0.48351287841796875,
            0.44854736328125,
            0.48955535888671875,
            0.461578369140625,
            0.4552154541015625,
            0.4727020263671875
          ]
        },
        "flink": {
          "median": 6.3556060791015625,
          "min": 6.096199035644531,
          "max": 6.5501556396484375,
          "trials": [
            6.4236297607421875,
            6.360374450683594,
            6.283119201660156,
            6.2618255615234375,
            6.096199035644531,
            6.331443786621094,
            6.440483093261719,
            6.148658752441406,
            6.5501556396484375,
            6.3556060791015625,
            6.387077331542969
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 4870,
        "shared_output_buffer_bytes": 0,
        "new_output_buffer_bytes": 4096
      }
    },
    {
      "type": "INT",
      "input_nulls": true,
      "binary_rowdata": false,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 40.93456268310547,
          "min": 39.513587951660156,
          "max": 55.467926025390625,
          "trials": [
            42.19850158691406,
            40.93456268310547,
            43.83405303955078,
            41.82402038574219,
            40.58361053466797,
            41.117034912109375,
            39.513587951660156,
            40.20564270019531,
            40.34741973876953,
            40.42784118652344,
            55.467926025390625
          ]
        },
        "native": {
          "median": 0.827789306640625,
          "min": 0.7883682250976562,
          "max": 0.873565673828125,
          "trials": [
            0.827789306640625,
            0.8090362548828125,
            0.873565673828125,
            0.8427276611328125,
            0.837646484375,
            0.8118896484375,
            0.7883682250976562,
            0.8220672607421875,
            0.8172988891601562,
            0.8710174560546875,
            0.8548126220703125
          ]
        },
        "flink": {
          "median": 4.5293121337890625,
          "min": 4.4377593994140625,
          "max": 4.743255615234375,
          "trials": [
            4.561103820800781,
            4.5293121337890625,
            4.743255615234375,
            4.601478576660156,
            4.547752380371094,
            4.4377593994140625,
            4.4765472412109375,
            4.525184631347656,
            4.532493591308594,
            4.523590087890625,
            4.506744384765625
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 4870,
        "shared_output_buffer_bytes": 128,
        "new_output_buffer_bytes": 4096
      }
    },
    {
      "type": "INT",
      "input_nulls": true,
      "binary_rowdata": true,
      "batch_rows": 16,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 741.2948608398438,
          "min": 730.9306488037109,
          "max": 763.4779586791992,
          "trials": [
            763.4779586791992,
            741.2948608398438,
            747.9254379272461,
            745.4376220703125,
            742.3343658447266,
            736.6228103637695,
            736.4867477416992,
            733.0023498535156,
            738.3975982666016,
            730.9306488037109,
            743.5963973999023
          ]
        },
        "native": {
          "median": 16.898468017578125,
          "min": 16.172409057617188,
          "max": 17.647422790527344,
          "trials": [
            16.81804656982422,
            16.897842407226562,
            16.849205017089844,
            17.43316650390625,
            17.52154541015625,
            17.186805725097656,
            17.647422790527344,
            17.551734924316406,
            16.898468017578125,
            16.280487060546875,
            16.172409057617188
          ]
        },
        "flink": {
          "median": 5.522727966308594,
          "min": 5.1864013671875,
          "max": 5.776084899902344,
          "trials": [
            5.7277679443359375,
            5.776084899902344,
            5.283988952636719,
            5.6947021484375,
            5.5653228759765625,
            5.404151916503906,
            5.251884460449219,
            5.322456359863281,
            5.1864013671875,
            5.522727966308594,
            5.539581298828125
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 838,
        "shared_output_buffer_bytes": 2,
        "new_output_buffer_bytes": 64
      }
    },
    {
      "type": "SMALLINT",
      "input_nulls": false,
      "binary_rowdata": true,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 39.565086364746094,
          "min": 38.405418395996094,
          "max": 41.206993103027344,
          "trials": [
            40.676116943359375,
            39.174720764160156,
            41.206993103027344,
            38.96967315673828,
            39.59210205078125,
            39.17407989501953,
            38.405418395996094,
            39.57621765136719,
            39.897918701171875,
            38.7725830078125,
            39.565086364746094
          ]
        },
        "native": {
          "median": 0.412628173828125,
          "min": 0.3951416015625,
          "max": 0.43582916259765625,
          "trials": [
            0.42470550537109375,
            0.42438507080078125,
            0.4138946533203125,
            0.41326141357421875,
            0.4062652587890625,
            0.412628173828125,
            0.40880584716796875,
            0.40944671630859375,
            0.43582916259765625,
            0.4100799560546875,
            0.3951416015625
          ]
        },
        "flink": {
          "median": 6.681755065917969,
          "min": 6.149604797363281,
          "max": 6.839439392089844,
          "trials": [
            6.6394805908203125,
            6.149604797363281,
            6.4465179443359375,
            6.741203308105469,
            6.535209655761719,
            6.714508056640625,
            6.839439392089844,
            6.681755065917969,
            6.511054992675781,
            6.773307800292969,
            6.6890716552734375
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 2822,
        "shared_output_buffer_bytes": 0,
        "new_output_buffer_bytes": 2048
      }
    },
    {
      "type": "SMALLINT",
      "input_nulls": true,
      "binary_rowdata": false,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 40.503822326660156,
          "min": 40.05272674560547,
          "max": 60.17335510253906,
          "trials": [
            40.472984313964844,
            40.674530029296875,
            40.05272674560547,
            40.503822326660156,
            40.070213317871094,
            42.37810516357422,
            60.17335510253906,
            40.27525329589844,
            42.73731994628906,
            40.60999298095703,
            40.30291748046875
          ]
        },
        "native": {
          "median": 0.81793212890625,
          "min": 0.796630859375,
          "max": 0.8363723754882812,
          "trials": [
            0.8204803466796875,
            0.8363723754882812,
            0.8233413696289062,
            0.81634521484375,
            0.8083953857421875,
            0.8306503295898438,
            0.8268356323242188,
            0.8014068603515625,
            0.81793212890625,
            0.80108642578125,
            0.796630859375
          ]
        },
        "flink": {
          "median": 4.5932159423828125,
          "min": 4.549659729003906,
          "max": 4.630088806152344,
          "trials": [
            4.630088806152344,
            4.5642852783203125,
            4.6215057373046875,
            4.5932159423828125,
            4.5839996337890625,
            4.589080810546875,
            4.591300964355469,
            4.549659729003906,
            4.5992584228515625,
            4.609428405761719,
            4.611656188964844
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 2822,
        "shared_output_buffer_bytes": 128,
        "new_output_buffer_bytes": 2048
      }
    },
    {
      "type": "SMALLINT",
      "input_nulls": true,
      "binary_rowdata": true,
      "batch_rows": 16,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 771.4265213012695,
          "min": 760.7946395874023,
          "max": 786.7482452392578,
          "trials": [
            780.4622650146484,
            772.3461761474609,
            773.9350051879883,
            770.6003189086914,
            786.7482452392578,
            771.4265213012695,
            766.6301727294922,
            772.2504959106445,
            763.7691497802734,
            770.5907821655273,
            760.7946395874023
          ]
        },
        "native": {
          "median": 18.223129272460938,
          "min": 17.536163330078125,
          "max": 18.75145721435547,
          "trials": [
            17.536163330078125,
            17.593704223632812,
            17.779029846191406,
            18.092788696289062,
            18.263816833496094,
            18.696151733398438,
            18.46758270263672,
            18.223129272460938,
            18.107093811035156,
            18.53020477294922,
            18.75145721435547
          ]
        },
        "flink": {
          "median": 5.7697296142578125,
          "min": 5.650840759277344,
          "max": 5.978263854980469,
          "trials": [
            5.778312683105469,
            5.925811767578125,
            5.6575164794921875,
            5.732536315917969,
            5.7697296142578125,
            5.866371154785156,
            5.761466979980469,
            5.827583312988281,
            5.650840759277344,
            5.978263854980469,
            5.7414398193359375
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 806,
        "shared_output_buffer_bytes": 2,
        "new_output_buffer_bytes": 32
      }
    },
    {
      "type": "TINYINT",
      "input_nulls": false,
      "binary_rowdata": true,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 41.73564910888672,
          "min": 40.64369201660156,
          "max": 44.80615997314453,
          "trials": [
            42.10027313232422,
            41.45082092285156,
            41.11894226074219,
            42.11839294433594,
            41.73564910888672,
            40.64369201660156,
            42.676612854003906,
            41.120849609375,
            44.80615997314453,
            41.219078063964844,
            41.73692321777344
          ]
        },
        "native": {
          "median": 0.4374237060546875,
          "min": 0.42121124267578125,
          "max": 0.44727325439453125,
          "trials": [
            0.44695281982421875,
            0.42978668212890625,
            0.4351959228515625,
            0.42661285400390625,
            0.42183685302734375,
            0.440277099609375,
            0.438690185546875,
            0.42121124267578125,
            0.43805694580078125,
            0.44727325439453125,
            0.4374237060546875
          ]
        },
        "flink": {
          "median": 6.70465087890625,
          "min": 6.389930725097656,
          "max": 6.922088623046875,
          "trials": [
            6.839118957519531,
            6.697334289550781,
            6.922088623046875,
            6.389930725097656,
            6.891571044921875,
            6.610237121582031,
            6.461456298828125,
            6.70465087890625,
            6.501197814941406,
            6.81463623046875,
            6.8194122314453125
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 1798,
        "shared_output_buffer_bytes": 0,
        "new_output_buffer_bytes": 1024
      }
    },
    {
      "type": "TINYINT",
      "input_nulls": true,
      "binary_rowdata": false,
      "batch_rows": 1024,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 41.66094207763672,
          "min": 40.28034210205078,
          "max": 60.47089385986328,
          "trials": [
            41.13642883300781,
            42.62351989746094,
            40.28034210205078,
            40.436424255371094,
            41.66094207763672,
            41.83991241455078,
            41.52520751953125,
            42.790733337402344,
            60.47089385986328,
            41.138648986816406,
            45.517921447753906
          ]
        },
        "native": {
          "median": 0.812530517578125,
          "min": 0.7826461791992188,
          "max": 0.8815155029296875,
          "trials": [
            0.8274765014648438,
            0.8036270141601562,
            0.7826461791992188,
            0.7870941162109375,
            0.8335113525390625,
            0.8230209350585938,
            0.812530517578125,
            0.8392333984375,
            0.8068084716796875,
            0.8815155029296875,
            0.7969512939453125
          ]
        },
        "flink": {
          "median": 4.7318115234375,
          "min": 4.5963897705078125,
          "max": 5.028404235839844,
          "trials": [
            4.914604187011719,
            4.7318115234375,
            4.711151123046875,
            5.028404235839844,
            4.723236083984375,
            4.713691711425781,
            4.786170959472656,
            4.5963897705078125,
            4.683815002441406,
            4.835762023925781,
            4.7947540283203125
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 1798,
        "shared_output_buffer_bytes": 128,
        "new_output_buffer_bytes": 1024
      }
    },
    {
      "type": "TINYINT",
      "input_nulls": true,
      "binary_rowdata": true,
      "batch_rows": 16,
      "unit": "ns/row",
      "results": {
        "previous": {
          "median": 755.4874420166016,
          "min": 747.5102767944336,
          "max": 766.2006988525391,
          "trials": [
            757.2008743286133,
            759.1355590820312,
            766.1940231323242,
            752.7373657226562,
            754.5229568481445,
            747.5102767944336,
            754.2683258056641,
            765.9943923950195,
            755.1460266113281,
            766.2006988525391,
            755.4874420166016
          ]
        },
        "native": {
          "median": 17.88298797607422,
          "min": 17.56732177734375,
          "max": 18.379844665527344,
          "trials": [
            17.92621612548828,
            18.06671905517578,
            17.69256591796875,
            17.601333618164062,
            17.56732177734375,
            17.963096618652344,
            17.88298797607422,
            17.75042724609375,
            18.375396728515625,
            18.379844665527344,
            17.83466339111328
          ]
        },
        "flink": {
          "median": 5.82122802734375,
          "min": 5.596473693847656,
          "max": 5.913414001464844,
          "trials": [
            5.816459655761719,
            5.913414001464844,
            5.744300842285156,
            5.8949737548828125,
            5.781806945800781,
            5.602195739746094,
            5.832359313964844,
            5.82122802734375,
            5.596473693847656,
            5.856193542480469,
            5.8253631591796875
          ]
        }
      },
      "allocation_probe": {
        "calls": 16,
        "requested_bytes": 790,
        "shared_output_buffer_bytes": 2,
        "new_output_buffer_bytes": 16
      }
    }
  ],
  "pipeline": {
    "flink": {
      "unit": "seconds",
      "median": 0.128052375,
      "min": 0.119441875,
      "max": 0.132487709,
      "trials": [
        0.132487709,
        0.128052375,
        0.119694959,
        0.119441875,
        0.130322333
      ]
    },
    "previous": {
      "unit": "seconds",
      "median": 0.162797709,
      "min": 0.161175,
      "max": 0.181274666,
      "trials": [
        0.181274666,
        0.169979166,
        0.161175,
        0.161371334,
        0.162797709
      ]
    },
    "native": {
      "unit": "seconds",
      "median": 0.146477416,
      "min": 0.134687334,
      "max": 0.153036708,
      "trials": [
        0.153036708,
        0.146477416,
        0.148011542,
        0.134687334,
        0.143732042
      ]
    }
  },
  "profile": {
    "method": "native-only macOS sample, five seconds; inclusive stacks overlap and do not establish independent percentages",
    "initial_udf_prototype": "ScalarFunctionExpr argument/field cloning, dispatch and destruction were visible costs; removed that layer for verified input-reference chains by reusing DataFusion NegativeExpr",
    "initial_int_16_row_allocation_probe": {
      "calls": 20,
      "requested_bytes": 1255
    },
    "final_int_16_row_allocation_probe": {
      "calls": 16,
      "requested_bytes": 838
    },
    "remaining": "Generic Calc result/schema/batch construction, allocation, Arrow numeric output and checksum consumption; small-batch and row/Arrow perimeter overhead remains tracked in #491."
  }
}
