N/ NIFT LABS

Experiment 01 / runtime & scripting

One runtime.
Different kinds
of work.

What does Nift cost as a scripting language? Separate startup-sensitive snippets from sustained computation and practical file/data work, then compare idiomatic implementations.

Current released Nift v4.13.0 vs the measured competitor set. Series 20261130-v4130-bench, measured 2026-11-30 on fresh g6-standard-4 Linode hosts. Runtime 2.0 is the default for script files; website builds use the ordinary Nift build path, not the VM. Canonical raw evidence, identity, machine/tool versions and retained samples.

Read the workload first

A language score hides the tradeoffs.

STARTUP

No-op/output mainly expose invocation cost. Tiny snippets are not application throughput.

COMPUTE

Loops, calls, arrays, map/set, Fibonacci and grid BFS exercise interpreter/JIT and collection paths.

FILES + DATA

JSON reads/parsing, record transformation/traversal and recursive files include actual I/O/helper costs.

Absolute latency

Startup and sustained work tell different stories.

Nift’s tiny no-op median was 6.501 ms, while the large arithmetic-loop invocation was 6.679 ms. Read the latter alongside native/JIT peers below: low invocation cost does not establish sustained execution throughput.

All participating languages; fresh-process median ms, 10 measured samples per cell
Workload / sizeniftpythonrubylua54luajitnodebashbundeno
sanity/noop / small6.50132.820107.22.9572.47272.3655.54217.87094.736
sanity/loops / large6.67934.495103.52.6752.00953.514285.013.61372.907
sanity/function-calls / large9.74439.620101.24.7162.16054.388490.516.81971.990
arrays-strings-hash/sort-index / large67.65032.972110.547.48342.54266.790288.925.72581.936
dynamic-programming/fibonacci / large14.39943.491110.53.9873.00456.436—23.67974.726
graphs-trees-search/bfs / large96.598114.8159.146.83025.150140.3—42.816135.0
structured-data/json-transform / large122.5109.9212.7——108.6—29.967122.3

A dash (—) means the implementation was outside scope and deliberately excluded; it is not a zero or a failed measurement. Selected classes are not an overall ranking. JSON parse/traverse and all filesystem families are omitted: Runtime 2.0 defers the legacy `inject`/unqualified-native forms, and native APIs versus external find/wc helpers are not equivalent work. Those are disclosed coverage gaps, not zeroes.

sanity/noop / small. Invocation latency (ms). Zero-based axis.
sanity/noop / small. Zero-based scale. SVG · PNG. Exact values appear in the accompanying tables.
sanity/loops / large. Invocation latency (ms). Logarithmic axis.
sanity/loops / large. Logarithmic scale; bar lengths are not proportional to values. SVG · PNG. Exact values appear in the accompanying tables.
sanity/function-calls / large. Invocation latency (ms). Logarithmic axis.
sanity/function-calls / large. Logarithmic scale; bar lengths are not proportional to values. SVG · PNG. Exact values appear in the accompanying tables.

sanity/noop

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small6.50132.820107.22.9572.47272.3655.54217.87094.736
large3.56526.17397.9162.0861.95441.2132.7838.97565.294
Retained tails and memory: sanity/noop
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms8.78634.540117.03.5517.03193.3606.60634.861125.0
small / Minimum ms5.93231.40298.4922.3712.13860.4644.43315.79384.775
small / Maximum ms9.68635.037118.93.5788.11498.6596.68440.226131.4
small / RSS MiB6.87510.00022.6252.2502.37543.9653.37520.00038.811
large / p95 ms4.55430.339113.92.4382.66850.5143.3159.68974.600
large / Minimum ms3.17723.02292.3601.7861.50535.2022.4057.90059.180
large / Maximum ms4.65431.708113.92.4572.96752.4213.6119.92675.083
large / RSS MiB6.87510.00022.6252.2502.37543.8423.37520.00038.816

sanity/output

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small3.85525.87494.9082.2691.83446.1782.90910.70462.032
large3.61427.14093.9282.1961.97645.5142.7009.73066.452
Retained tails and memory: sanity/output
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms5.30234.087114.92.5632.65461.7653.22313.27369.817
small / Minimum ms3.41022.39582.5491.7601.60538.4552.4998.68155.609
small / Maximum ms6.04434.173118.52.6722.88566.6663.26614.34170.773
small / RSS MiB7.12510.00022.6252.2502.31245.7173.37521.62538.848
large / p95 ms4.18830.287107.75.0812.38357.7953.41510.96673.598
large / Minimum ms2.98922.72986.1461.7811.53042.5102.4678.10957.973
large / Maximum ms4.36431.259113.57.0062.43158.9473.52811.63975.867
large / RSS MiB7.12510.00022.6252.2502.37545.7153.37521.62538.977

sanity/arithmetic

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small4.14426.04496.0722.3902.22147.0555.84011.01766.498
large6.67028.92893.1152.6252.05159.258320.814.15272.052
Retained tails and memory: sanity/arithmetic
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms4.58233.818108.64.1462.75660.9377.04320.18188.283
small / Minimum ms3.25523.01075.9531.8271.69741.2035.3899.66157.402
small / Maximum ms4.79334.185109.65.2402.77162.3787.30324.55294.728
small / RSS MiB7.31210.00022.6252.5002.37546.1543.50022.25039.615
large / p95 ms6.96939.289104.53.5612.42871.021357.618.22884.939
large / Minimum ms6.08424.38076.6332.2491.89553.719279.410.21762.668
large / Maximum ms7.03041.303106.23.7492.47872.863365.918.99386.268
large / RSS MiB7.31210.00022.6252.3752.37552.4693.50026.37543.129

sanity/loops

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small3.72225.48890.5082.2892.02147.6255.5799.88763.218
large6.67934.495103.52.6752.00953.514285.013.61372.907
Retained tails and memory: sanity/loops
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms4.32032.685105.42.6032.55160.3007.00412.98478.473
small / Minimum ms3.39821.50880.2751.6421.71442.1064.8198.19555.452
small / Maximum ms4.36734.461109.32.6882.71761.7777.18014.71583.438
small / RSS MiB7.37510.00022.6252.3752.37545.9693.50022.12539.607
large / p95 ms7.71843.034113.03.2793.58973.419322.418.20683.308
large / Minimum ms6.17631.41092.4272.2291.77341.878268.69.62958.188
large / Maximum ms7.80743.999115.43.4703.85879.887330.719.38284.119
large / RSS MiB7.37510.00022.6252.3752.37551.7173.37526.12542.715

sanity/function-calls

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small3.98826.80094.6202.3231.99048.7998.22010.58968.379
large9.74439.620101.24.7162.16054.388490.516.81971.990
Retained tails and memory: sanity/function-calls
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms4.46032.846104.34.9542.42061.63611.31311.65078.062
small / Minimum ms3.35721.63985.4051.9041.59640.2037.2029.48359.565
small / Maximum ms4.47633.113105.66.8322.52664.71011.34812.03579.212
small / RSS MiB7.25010.00022.6252.5002.37545.8423.50022.62539.383
large / p95 ms13.71342.474108.46.5952.47971.556538.122.09787.481
large / Minimum ms9.07734.52988.8983.9561.69245.771458.111.86259.701
large / Maximum ms15.88442.845108.87.6442.52478.329549.725.38094.596
large / RSS MiB7.37510.00022.6252.4382.37551.8443.50028.87543.053

sanity/strings

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small4.38926.10896.1002.0131.88847.9967.7049.80671.158
large14.43026.22797.5813.0912.19146.94266.1519.69063.993
Retained tails and memory: sanity/strings
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms7.92232.711106.92.5752.48973.54011.00914.59393.126
small / Minimum ms3.42122.03885.1641.8571.52240.3856.0048.56557.526
small / Maximum ms10.30435.879109.32.6412.51583.38311.76917.049100.2
small / RSS MiB7.43810.00022.6252.4382.31245.8443.50022.00039.188
large / p95 ms18.82331.094110.53.4662.53559.88281.19311.59376.914
large / Minimum ms11.48122.89691.3472.7882.00241.46660.3528.25460.147
large / Maximum ms20.65333.413112.43.5532.55559.96885.54111.77879.610
large / RSS MiB9.00410.12522.7502.6252.42245.84211.64122.12538.904

sanity/allocation

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small3.89328.01791.6592.2722.07453.3806.13811.85772.554
large12.67935.567101.36.2403.48255.097357.019.85478.283
Retained tails and memory: sanity/allocation
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms4.48233.08096.0982.8452.45456.5598.13214.95274.909
small / Minimum ms3.36425.80782.2181.8501.72241.8475.7019.93958.560
small / Maximum ms4.58033.66696.9392.8822.60857.0888.64915.44675.407
small / RSS MiB7.37510.00022.5622.5002.37545.8403.37523.50039.352
large / p95 ms19.45246.282113.59.4233.96072.351430.420.581102.4
large / Minimum ms11.08032.88881.4785.4383.03150.496331.915.64865.696
large / Maximum ms19.51447.849114.910.5994.04972.759453.820.766110.2
large / RSS MiB8.99213.75023.5514.3753.25051.84211.12529.56242.492

arrays-strings-hash/scan

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small3.97726.60695.8852.2692.21947.7736.12910.62267.666
large7.93833.409103.13.3892.21358.945335.412.41780.115
Retained tails and memory: arrays-strings-hash/scan
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms4.38134.706103.76.0802.54560.7519.72613.662110.3
small / Minimum ms3.47623.28381.1902.0181.61741.9645.4107.87857.612
small / Maximum ms4.39338.412106.89.0722.66563.59110.79914.597129.9
small / RSS MiB7.25010.00022.6252.5002.37546.2153.43822.25039.924
large / p95 ms11.14240.303113.03.8372.48468.778414.418.393102.3
large / Minimum ms7.44028.37084.5452.7641.68149.029305.210.93066.204
large / Maximum ms13.27741.107113.43.8922.51669.702444.320.890110.4
large / RSS MiB7.25010.00022.6252.4382.37553.4673.43826.87544.570

arrays-strings-hash/frequency-count

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small4.65826.80898.5272.3292.09052.1019.5439.92767.246
large56.26758.109123.023.0583.93156.834642.620.03576.570
Retained tails and memory: arrays-strings-hash/frequency-count
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms7.75335.087105.22.8312.50664.26114.17214.474101.5
small / Minimum ms4.29522.31181.8822.1111.80541.0868.7679.08853.265
small / Maximum ms9.36137.035109.22.8482.55366.95914.57116.999105.0
small / RSS MiB7.50010.00022.6252.3752.37545.8403.50022.87539.109
large / p95 ms82.12575.896151.833.7624.688166.9812.425.15797.881
large / Minimum ms51.48046.384108.218.7563.49047.766579.717.53261.314
large / Maximum ms85.19984.907155.434.3504.791252.5865.326.188104.7
large / RSS MiB7.62510.00022.7502.5002.37551.9693.50027.75044.100

arrays-strings-hash/sliding-window

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small4.85025.73495.2612.5252.25346.36015.79211.16771.417
large27.23261.118110.29.2693.87364.2265,289.022.08682.974
Retained tails and memory: arrays-strings-hash/sliding-window
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms7.46729.930103.33.8252.67488.55425.34818.862107.9
small / Minimum ms3.87024.39182.7472.1801.73238.67014.5699.65059.575
small / Maximum ms8.97931.284103.73.8412.775115.527.97319.423131.7
small / RSS MiB7.37510.00022.6252.4382.37545.8423.62523.75039.598
large / p95 ms31.49565.149143.612.6744.800116.75,492.427.079104.2
large / Minimum ms24.68949.43998.7377.4013.16056.1165,110.217.53172.121
large / Maximum ms33.53865.482155.413.0035.297148.15,582.628.087104.8
large / RSS MiB9.00813.75023.8014.3753.25052.52920.28932.68843.938

arrays-strings-hash/sort-index

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small5.07826.76593.1412.7872.16246.35716.45211.94469.442
large67.65032.972110.547.48342.54266.790288.925.72581.936
Retained tails and memory: arrays-strings-hash/sort-index
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms6.97128.943113.15.1982.68659.88520.74915.21478.200
small / Minimum ms4.30722.22887.7272.1801.97642.29913.3949.68960.281
small / Maximum ms7.30729.570121.05.4072.89364.47021.82215.21578.944
small / RSS MiB7.50010.00022.6882.3752.37545.9653.75023.87539.734
large / p95 ms74.12738.484116.964.57455.46476.062410.936.70793.993
large / Minimum ms60.86728.82787.18142.67840.04153.171246.623.52472.518
large / Maximum ms74.17539.886118.674.85064.38777.689430.341.73794.740
large / RSS MiB14.75413.75025.0514.4383.25053.09227.90834.25043.199

arrays-strings-hash/map-set

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small4.50725.769102.12.2762.14249.4065.97410.08068.271
large29.39742.246143.19.5974.01468.351296.930.40388.291
Retained tails and memory: arrays-strings-hash/map-set
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms5.24731.607115.32.9552.39255.7907.97613.80179.423
small / Minimum ms3.84122.43189.0281.8011.72841.4975.0679.03855.758
small / Maximum ms5.44731.809118.73.0222.41056.4208.80114.75485.922
small / RSS MiB7.50010.12522.8752.5002.37545.8423.62522.62539.115
large / p95 ms36.37354.644163.014.8284.95388.346482.341.44598.866
large / Minimum ms25.30236.942117.87.7443.47660.079272.523.19874.938
large / Maximum ms36.66857.108165.116.8975.16191.744488.941.951105.1
large / RSS MiB10.76218.33627.7584.3753.25056.69514.62535.37548.121

dynamic-programming/fibonacci

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small3.76528.26594.4572.2851.91951.073—9.09866.276
large14.39943.491110.53.9873.00456.436—23.67974.726
Retained tails and memory: dynamic-programming/fibonacci
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms4.90935.449103.82.6632.56854.830—12.36783.134
small / Minimum ms3.64622.40588.2881.8581.64041.853—8.15756.389
small / Maximum ms5.08235.997104.02.6932.65455.308—14.56783.439
small / RSS MiB7.37510.00022.6252.5002.37545.844—22.00039.090
large / p95 ms19.02256.952144.95.3383.40567.755—27.89293.297
large / Minimum ms13.52239.40098.8683.2592.56148.543—19.78562.156
large / Maximum ms19.50561.134148.75.8813.46369.818—28.512103.8
large / RSS MiB7.37510.00022.7502.4382.37553.654—32.37546.000

graphs-trees-search/bfs

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small5.70025.85795.3372.7442.76553.635—12.08670.161
large96.598114.8159.146.83025.150140.3—42.816135.0
Retained tails and memory: graphs-trees-search/bfs
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms6.24928.477124.84.5873.30465.003—15.47281.984
small / Minimum ms5.19422.66482.9522.4052.57245.768—10.32358.578
small / Maximum ms6.29528.545127.95.7613.43765.260—17.53883.489
small / RSS MiB7.50010.12522.6252.5622.43847.594—24.37541.127
large / p95 ms118.0136.2201.058.50529.161183.7—57.827160.0
large / Minimum ms88.51695.981140.942.69219.369122.4—38.338118.8
large / Maximum ms121.0140.7217.958.57730.139204.4—58.570165.0
large / RSS MiB12.25213.79326.0006.5005.62565.004—41.62554.299

structured-data/json-transform

Fresh-process median ms; 10 measured samples
Sizeniftpythonrubylua54luajitnodebashbundeno
small5.97337.346117.1——56.753—10.96868.427
large122.5109.9212.7——108.6—29.967122.3
Retained tails and memory: structured-data/json-transform
Separate descriptive metrics; RSS is waited-child high-water, not a combined ranking
Size / metricniftpythonrubylua54luajitnodebashbundeno
small / p95 ms7.28640.889126.0——102.5—14.97989.887
small / Minimum ms4.73532.22696.709——40.181—9.95460.705
small / Maximum ms7.42641.311128.0——134.2—15.194101.0
small / RSS MiB8.25010.87523.000——46.344—23.75040.350
large / p95 ms148.2130.6249.6——245.8—41.836143.5
large / Minimum ms95.27889.103176.6——95.847—27.827114.9
large / Maximum ms162.9133.9257.6——315.4—48.103145.5
large / RSS MiB34.04132.87540.375——68.779—40.12558.744
Memory comparisons across all participating runtimes; median waited-child high-water RSS, not aggregate tree memory
RuntimeNo-op RSS MiBLarge loops RSS MiB
nift6.8757.375
python10.00010.000
ruby22.62522.625
lua542.2502.375
luajit2.3752.375
node43.96551.717
bash3.3753.375
bun20.00026.125
deno38.81142.715

Measurement & correctness

Every sample earns its place.

Ten measured samples plus two retained warmups per job; serial execution, rotated order, C-supervised fork/exec-to-exit latency and Linux waited-child high-water RSS. Every invocation must exit successfully and match its golden output. Alternate numeric formatting is accepted only when exact finite Decimal values agree; rounded output does not count.

Preparation is outside timing. Every sample creates a fresh runtime process with OS caches uncontrolled. We call this fresh-process-repeated, correcting the old suite’s misleading identical cold/warm labels. Historical runs are not merged.

Implementation choices

Observation before interpretation.

Native/JIT collection mechanisms can earn an advantage in sustained computation; invocation cost matters more for tiny automation. Nift’s integrated file/data functionality may be useful without winning every row. No benchmark here prices maintainability or feature convenience.

Bash is excluded from structured-data, Fibonacci and BFS where unnatural. BFS keeps the same per-node direction-array allocation in Nift, JS, Ruby and Lua; only declarations required by Runtime 2.0 prepared-code rules are hoisted. JSON-transform constructs the same records in memory for every runtime. Helpers remain inside timing.

Frequency-count v2 streams counters consistently; sort-index describes sorting and indexed reads. The misleading two-pointer endpoint test is omitted. Three redundant sanity microbenchmarks and duplicate shell startup are omitted. JSON-mutate duplicated record transformation without proving persistent array mutation. JSON parse/traverse/mutate/query, all filesystem families, two-pointer and cold-start are explicit coverage gaps; v4.13 rows are not speedup claims against differently covered v4.12 rows. More end-to-end practical workflows would strengthen relevance.

Frozen environment

Exact source, tools and boundaries.

Released Nift v4.13.0, release commit a703876c1b56434b8295413997321bb055c225d5, Linux archive SHA-256 d93760ba7b270b9492e9dd7271ba75668855c79cea24294beb87fb9e47e1e15a; measured binary c1fa47ecfded618b66c25e788ae02ad29e1ec4d5ae1024f6371eedbb2b1e0a71. AMD EPYC 7713 64-Core Processor; 4 vCPU / 8 GiB Ubuntu 24.04; timed processes pinned to CPU 0. OS caches uncontrolled; not a machine-cold boot.

Detected on this suite’s measurement host
SystemMeasured version
niftNift v4.13.0
pythonPython 3.12.3
rubyruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux-gnu]
lua54Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio
luajitLuaJIT 2.1.1703358377 -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/
nodev24.22.3
bashGNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
bun1.4.5
denodeno 2.9.8 (stable, release, x86_64-unknown-linux-gnu)

Canonical raw evidence, retained samples, host identity and tool versions. This series is current v4.13.0 vs competition; historical development cohorts are not displayed here.

Reproduce / scrutinise

All observations are retained.

Summaries are independently recomputed from raw observations. Warmups remain separate; no failed or superseded attempt is substituted for the accepted run.

Practitioner judgement / AI-DX

Choose for the actual workflow.

For a standalone general-purpose script, especially sustained data/compute work, I would usually choose Python (or a workload-appropriate native/JIT runtime), using the peer rows rather than Nift’s startup cost alone. Inside a Nift-owned project combining templates, files, build policy and tasks, I would choose Nift where the shared runtime and explicit contracts simplify agent maintenance. Human-plus-agent and agent-primary choices depend on those project requirements; the benchmark does not measure authoring error rates or prove that one language is universally best.

Machine-readable inputs, ownership and dependencies can be useful explicitness rather than redundant ceremony. These qualitative judgements do not turn the harness’s golden-output/fixture checks into automatic product guarantees. Memory remains a separately qualified waited-child high-water measure, not aggregate process-tree usage or a combined performance score.

Conclusion

Workload-specific evidence.

These results support bounded implementation comparisons, not one scripting-language league table. Algorithms are diagnostics; practical file/data rows need equivalent helpers before they can be published responsibly.

Nift Benchmarks

Three perspectives on one runtime.