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.
No-op/output mainly expose invocation cost. Tiny snippets are not application throughput.
Loops, calls, arrays, map/set, Fibonacci and grid BFS exercise interpreter/JIT and collection paths.
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.
| Workload / size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| sanity/noop / small | 6.501 | 32.820 | 107.2 | 2.957 | 2.472 | 72.365 | 5.542 | 17.870 | 94.736 |
| sanity/loops / large | 6.679 | 34.495 | 103.5 | 2.675 | 2.009 | 53.514 | 285.0 | 13.613 | 72.907 |
| sanity/function-calls / large | 9.744 | 39.620 | 101.2 | 4.716 | 2.160 | 54.388 | 490.5 | 16.819 | 71.990 |
| arrays-strings-hash/sort-index / large | 67.650 | 32.972 | 110.5 | 47.483 | 42.542 | 66.790 | 288.9 | 25.725 | 81.936 |
| dynamic-programming/fibonacci / large | 14.399 | 43.491 | 110.5 | 3.987 | 3.004 | 56.436 | — | 23.679 | 74.726 |
| graphs-trees-search/bfs / large | 96.598 | 114.8 | 159.1 | 46.830 | 25.150 | 140.3 | — | 42.816 | 135.0 |
| structured-data/json-transform / large | 122.5 | 109.9 | 212.7 | — | — | 108.6 | — | 29.967 | 122.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
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 6.501 | 32.820 | 107.2 | 2.957 | 2.472 | 72.365 | 5.542 | 17.870 | 94.736 |
| large | 3.565 | 26.173 | 97.916 | 2.086 | 1.954 | 41.213 | 2.783 | 8.975 | 65.294 |
Retained tails and memory: sanity/noop
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 8.786 | 34.540 | 117.0 | 3.551 | 7.031 | 93.360 | 6.606 | 34.861 | 125.0 |
| small / Minimum ms | 5.932 | 31.402 | 98.492 | 2.371 | 2.138 | 60.464 | 4.433 | 15.793 | 84.775 |
| small / Maximum ms | 9.686 | 35.037 | 118.9 | 3.578 | 8.114 | 98.659 | 6.684 | 40.226 | 131.4 |
| small / RSS MiB | 6.875 | 10.000 | 22.625 | 2.250 | 2.375 | 43.965 | 3.375 | 20.000 | 38.811 |
| large / p95 ms | 4.554 | 30.339 | 113.9 | 2.438 | 2.668 | 50.514 | 3.315 | 9.689 | 74.600 |
| large / Minimum ms | 3.177 | 23.022 | 92.360 | 1.786 | 1.505 | 35.202 | 2.405 | 7.900 | 59.180 |
| large / Maximum ms | 4.654 | 31.708 | 113.9 | 2.457 | 2.967 | 52.421 | 3.611 | 9.926 | 75.083 |
| large / RSS MiB | 6.875 | 10.000 | 22.625 | 2.250 | 2.375 | 43.842 | 3.375 | 20.000 | 38.816 |
sanity/output
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 3.855 | 25.874 | 94.908 | 2.269 | 1.834 | 46.178 | 2.909 | 10.704 | 62.032 |
| large | 3.614 | 27.140 | 93.928 | 2.196 | 1.976 | 45.514 | 2.700 | 9.730 | 66.452 |
Retained tails and memory: sanity/output
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 5.302 | 34.087 | 114.9 | 2.563 | 2.654 | 61.765 | 3.223 | 13.273 | 69.817 |
| small / Minimum ms | 3.410 | 22.395 | 82.549 | 1.760 | 1.605 | 38.455 | 2.499 | 8.681 | 55.609 |
| small / Maximum ms | 6.044 | 34.173 | 118.5 | 2.672 | 2.885 | 66.666 | 3.266 | 14.341 | 70.773 |
| small / RSS MiB | 7.125 | 10.000 | 22.625 | 2.250 | 2.312 | 45.717 | 3.375 | 21.625 | 38.848 |
| large / p95 ms | 4.188 | 30.287 | 107.7 | 5.081 | 2.383 | 57.795 | 3.415 | 10.966 | 73.598 |
| large / Minimum ms | 2.989 | 22.729 | 86.146 | 1.781 | 1.530 | 42.510 | 2.467 | 8.109 | 57.973 |
| large / Maximum ms | 4.364 | 31.259 | 113.5 | 7.006 | 2.431 | 58.947 | 3.528 | 11.639 | 75.867 |
| large / RSS MiB | 7.125 | 10.000 | 22.625 | 2.250 | 2.375 | 45.715 | 3.375 | 21.625 | 38.977 |
sanity/arithmetic
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 4.144 | 26.044 | 96.072 | 2.390 | 2.221 | 47.055 | 5.840 | 11.017 | 66.498 |
| large | 6.670 | 28.928 | 93.115 | 2.625 | 2.051 | 59.258 | 320.8 | 14.152 | 72.052 |
Retained tails and memory: sanity/arithmetic
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 4.582 | 33.818 | 108.6 | 4.146 | 2.756 | 60.937 | 7.043 | 20.181 | 88.283 |
| small / Minimum ms | 3.255 | 23.010 | 75.953 | 1.827 | 1.697 | 41.203 | 5.389 | 9.661 | 57.402 |
| small / Maximum ms | 4.793 | 34.185 | 109.6 | 5.240 | 2.771 | 62.378 | 7.303 | 24.552 | 94.728 |
| small / RSS MiB | 7.312 | 10.000 | 22.625 | 2.500 | 2.375 | 46.154 | 3.500 | 22.250 | 39.615 |
| large / p95 ms | 6.969 | 39.289 | 104.5 | 3.561 | 2.428 | 71.021 | 357.6 | 18.228 | 84.939 |
| large / Minimum ms | 6.084 | 24.380 | 76.633 | 2.249 | 1.895 | 53.719 | 279.4 | 10.217 | 62.668 |
| large / Maximum ms | 7.030 | 41.303 | 106.2 | 3.749 | 2.478 | 72.863 | 365.9 | 18.993 | 86.268 |
| large / RSS MiB | 7.312 | 10.000 | 22.625 | 2.375 | 2.375 | 52.469 | 3.500 | 26.375 | 43.129 |
sanity/loops
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 3.722 | 25.488 | 90.508 | 2.289 | 2.021 | 47.625 | 5.579 | 9.887 | 63.218 |
| large | 6.679 | 34.495 | 103.5 | 2.675 | 2.009 | 53.514 | 285.0 | 13.613 | 72.907 |
Retained tails and memory: sanity/loops
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 4.320 | 32.685 | 105.4 | 2.603 | 2.551 | 60.300 | 7.004 | 12.984 | 78.473 |
| small / Minimum ms | 3.398 | 21.508 | 80.275 | 1.642 | 1.714 | 42.106 | 4.819 | 8.195 | 55.452 |
| small / Maximum ms | 4.367 | 34.461 | 109.3 | 2.688 | 2.717 | 61.777 | 7.180 | 14.715 | 83.438 |
| small / RSS MiB | 7.375 | 10.000 | 22.625 | 2.375 | 2.375 | 45.969 | 3.500 | 22.125 | 39.607 |
| large / p95 ms | 7.718 | 43.034 | 113.0 | 3.279 | 3.589 | 73.419 | 322.4 | 18.206 | 83.308 |
| large / Minimum ms | 6.176 | 31.410 | 92.427 | 2.229 | 1.773 | 41.878 | 268.6 | 9.629 | 58.188 |
| large / Maximum ms | 7.807 | 43.999 | 115.4 | 3.470 | 3.858 | 79.887 | 330.7 | 19.382 | 84.119 |
| large / RSS MiB | 7.375 | 10.000 | 22.625 | 2.375 | 2.375 | 51.717 | 3.375 | 26.125 | 42.715 |
sanity/function-calls
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 3.988 | 26.800 | 94.620 | 2.323 | 1.990 | 48.799 | 8.220 | 10.589 | 68.379 |
| large | 9.744 | 39.620 | 101.2 | 4.716 | 2.160 | 54.388 | 490.5 | 16.819 | 71.990 |
Retained tails and memory: sanity/function-calls
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 4.460 | 32.846 | 104.3 | 4.954 | 2.420 | 61.636 | 11.313 | 11.650 | 78.062 |
| small / Minimum ms | 3.357 | 21.639 | 85.405 | 1.904 | 1.596 | 40.203 | 7.202 | 9.483 | 59.565 |
| small / Maximum ms | 4.476 | 33.113 | 105.6 | 6.832 | 2.526 | 64.710 | 11.348 | 12.035 | 79.212 |
| small / RSS MiB | 7.250 | 10.000 | 22.625 | 2.500 | 2.375 | 45.842 | 3.500 | 22.625 | 39.383 |
| large / p95 ms | 13.713 | 42.474 | 108.4 | 6.595 | 2.479 | 71.556 | 538.1 | 22.097 | 87.481 |
| large / Minimum ms | 9.077 | 34.529 | 88.898 | 3.956 | 1.692 | 45.771 | 458.1 | 11.862 | 59.701 |
| large / Maximum ms | 15.884 | 42.845 | 108.8 | 7.644 | 2.524 | 78.329 | 549.7 | 25.380 | 94.596 |
| large / RSS MiB | 7.375 | 10.000 | 22.625 | 2.438 | 2.375 | 51.844 | 3.500 | 28.875 | 43.053 |
sanity/strings
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 4.389 | 26.108 | 96.100 | 2.013 | 1.888 | 47.996 | 7.704 | 9.806 | 71.158 |
| large | 14.430 | 26.227 | 97.581 | 3.091 | 2.191 | 46.942 | 66.151 | 9.690 | 63.993 |
Retained tails and memory: sanity/strings
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 7.922 | 32.711 | 106.9 | 2.575 | 2.489 | 73.540 | 11.009 | 14.593 | 93.126 |
| small / Minimum ms | 3.421 | 22.038 | 85.164 | 1.857 | 1.522 | 40.385 | 6.004 | 8.565 | 57.526 |
| small / Maximum ms | 10.304 | 35.879 | 109.3 | 2.641 | 2.515 | 83.383 | 11.769 | 17.049 | 100.2 |
| small / RSS MiB | 7.438 | 10.000 | 22.625 | 2.438 | 2.312 | 45.844 | 3.500 | 22.000 | 39.188 |
| large / p95 ms | 18.823 | 31.094 | 110.5 | 3.466 | 2.535 | 59.882 | 81.193 | 11.593 | 76.914 |
| large / Minimum ms | 11.481 | 22.896 | 91.347 | 2.788 | 2.002 | 41.466 | 60.352 | 8.254 | 60.147 |
| large / Maximum ms | 20.653 | 33.413 | 112.4 | 3.553 | 2.555 | 59.968 | 85.541 | 11.778 | 79.610 |
| large / RSS MiB | 9.004 | 10.125 | 22.750 | 2.625 | 2.422 | 45.842 | 11.641 | 22.125 | 38.904 |
sanity/allocation
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 3.893 | 28.017 | 91.659 | 2.272 | 2.074 | 53.380 | 6.138 | 11.857 | 72.554 |
| large | 12.679 | 35.567 | 101.3 | 6.240 | 3.482 | 55.097 | 357.0 | 19.854 | 78.283 |
Retained tails and memory: sanity/allocation
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 4.482 | 33.080 | 96.098 | 2.845 | 2.454 | 56.559 | 8.132 | 14.952 | 74.909 |
| small / Minimum ms | 3.364 | 25.807 | 82.218 | 1.850 | 1.722 | 41.847 | 5.701 | 9.939 | 58.560 |
| small / Maximum ms | 4.580 | 33.666 | 96.939 | 2.882 | 2.608 | 57.088 | 8.649 | 15.446 | 75.407 |
| small / RSS MiB | 7.375 | 10.000 | 22.562 | 2.500 | 2.375 | 45.840 | 3.375 | 23.500 | 39.352 |
| large / p95 ms | 19.452 | 46.282 | 113.5 | 9.423 | 3.960 | 72.351 | 430.4 | 20.581 | 102.4 |
| large / Minimum ms | 11.080 | 32.888 | 81.478 | 5.438 | 3.031 | 50.496 | 331.9 | 15.648 | 65.696 |
| large / Maximum ms | 19.514 | 47.849 | 114.9 | 10.599 | 4.049 | 72.759 | 453.8 | 20.766 | 110.2 |
| large / RSS MiB | 8.992 | 13.750 | 23.551 | 4.375 | 3.250 | 51.842 | 11.125 | 29.562 | 42.492 |
arrays-strings-hash/scan
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 3.977 | 26.606 | 95.885 | 2.269 | 2.219 | 47.773 | 6.129 | 10.622 | 67.666 |
| large | 7.938 | 33.409 | 103.1 | 3.389 | 2.213 | 58.945 | 335.4 | 12.417 | 80.115 |
Retained tails and memory: arrays-strings-hash/scan
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 4.381 | 34.706 | 103.7 | 6.080 | 2.545 | 60.751 | 9.726 | 13.662 | 110.3 |
| small / Minimum ms | 3.476 | 23.283 | 81.190 | 2.018 | 1.617 | 41.964 | 5.410 | 7.878 | 57.612 |
| small / Maximum ms | 4.393 | 38.412 | 106.8 | 9.072 | 2.665 | 63.591 | 10.799 | 14.597 | 129.9 |
| small / RSS MiB | 7.250 | 10.000 | 22.625 | 2.500 | 2.375 | 46.215 | 3.438 | 22.250 | 39.924 |
| large / p95 ms | 11.142 | 40.303 | 113.0 | 3.837 | 2.484 | 68.778 | 414.4 | 18.393 | 102.3 |
| large / Minimum ms | 7.440 | 28.370 | 84.545 | 2.764 | 1.681 | 49.029 | 305.2 | 10.930 | 66.204 |
| large / Maximum ms | 13.277 | 41.107 | 113.4 | 3.892 | 2.516 | 69.702 | 444.3 | 20.890 | 110.4 |
| large / RSS MiB | 7.250 | 10.000 | 22.625 | 2.438 | 2.375 | 53.467 | 3.438 | 26.875 | 44.570 |
arrays-strings-hash/frequency-count
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 4.658 | 26.808 | 98.527 | 2.329 | 2.090 | 52.101 | 9.543 | 9.927 | 67.246 |
| large | 56.267 | 58.109 | 123.0 | 23.058 | 3.931 | 56.834 | 642.6 | 20.035 | 76.570 |
Retained tails and memory: arrays-strings-hash/frequency-count
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 7.753 | 35.087 | 105.2 | 2.831 | 2.506 | 64.261 | 14.172 | 14.474 | 101.5 |
| small / Minimum ms | 4.295 | 22.311 | 81.882 | 2.111 | 1.805 | 41.086 | 8.767 | 9.088 | 53.265 |
| small / Maximum ms | 9.361 | 37.035 | 109.2 | 2.848 | 2.553 | 66.959 | 14.571 | 16.999 | 105.0 |
| small / RSS MiB | 7.500 | 10.000 | 22.625 | 2.375 | 2.375 | 45.840 | 3.500 | 22.875 | 39.109 |
| large / p95 ms | 82.125 | 75.896 | 151.8 | 33.762 | 4.688 | 166.9 | 812.4 | 25.157 | 97.881 |
| large / Minimum ms | 51.480 | 46.384 | 108.2 | 18.756 | 3.490 | 47.766 | 579.7 | 17.532 | 61.314 |
| large / Maximum ms | 85.199 | 84.907 | 155.4 | 34.350 | 4.791 | 252.5 | 865.3 | 26.188 | 104.7 |
| large / RSS MiB | 7.625 | 10.000 | 22.750 | 2.500 | 2.375 | 51.969 | 3.500 | 27.750 | 44.100 |
arrays-strings-hash/sliding-window
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 4.850 | 25.734 | 95.261 | 2.525 | 2.253 | 46.360 | 15.792 | 11.167 | 71.417 |
| large | 27.232 | 61.118 | 110.2 | 9.269 | 3.873 | 64.226 | 5,289.0 | 22.086 | 82.974 |
Retained tails and memory: arrays-strings-hash/sliding-window
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 7.467 | 29.930 | 103.3 | 3.825 | 2.674 | 88.554 | 25.348 | 18.862 | 107.9 |
| small / Minimum ms | 3.870 | 24.391 | 82.747 | 2.180 | 1.732 | 38.670 | 14.569 | 9.650 | 59.575 |
| small / Maximum ms | 8.979 | 31.284 | 103.7 | 3.841 | 2.775 | 115.5 | 27.973 | 19.423 | 131.7 |
| small / RSS MiB | 7.375 | 10.000 | 22.625 | 2.438 | 2.375 | 45.842 | 3.625 | 23.750 | 39.598 |
| large / p95 ms | 31.495 | 65.149 | 143.6 | 12.674 | 4.800 | 116.7 | 5,492.4 | 27.079 | 104.2 |
| large / Minimum ms | 24.689 | 49.439 | 98.737 | 7.401 | 3.160 | 56.116 | 5,110.2 | 17.531 | 72.121 |
| large / Maximum ms | 33.538 | 65.482 | 155.4 | 13.003 | 5.297 | 148.1 | 5,582.6 | 28.087 | 104.8 |
| large / RSS MiB | 9.008 | 13.750 | 23.801 | 4.375 | 3.250 | 52.529 | 20.289 | 32.688 | 43.938 |
arrays-strings-hash/sort-index
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 5.078 | 26.765 | 93.141 | 2.787 | 2.162 | 46.357 | 16.452 | 11.944 | 69.442 |
| large | 67.650 | 32.972 | 110.5 | 47.483 | 42.542 | 66.790 | 288.9 | 25.725 | 81.936 |
Retained tails and memory: arrays-strings-hash/sort-index
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 6.971 | 28.943 | 113.1 | 5.198 | 2.686 | 59.885 | 20.749 | 15.214 | 78.200 |
| small / Minimum ms | 4.307 | 22.228 | 87.727 | 2.180 | 1.976 | 42.299 | 13.394 | 9.689 | 60.281 |
| small / Maximum ms | 7.307 | 29.570 | 121.0 | 5.407 | 2.893 | 64.470 | 21.822 | 15.215 | 78.944 |
| small / RSS MiB | 7.500 | 10.000 | 22.688 | 2.375 | 2.375 | 45.965 | 3.750 | 23.875 | 39.734 |
| large / p95 ms | 74.127 | 38.484 | 116.9 | 64.574 | 55.464 | 76.062 | 410.9 | 36.707 | 93.993 |
| large / Minimum ms | 60.867 | 28.827 | 87.181 | 42.678 | 40.041 | 53.171 | 246.6 | 23.524 | 72.518 |
| large / Maximum ms | 74.175 | 39.886 | 118.6 | 74.850 | 64.387 | 77.689 | 430.3 | 41.737 | 94.740 |
| large / RSS MiB | 14.754 | 13.750 | 25.051 | 4.438 | 3.250 | 53.092 | 27.908 | 34.250 | 43.199 |
arrays-strings-hash/map-set
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 4.507 | 25.769 | 102.1 | 2.276 | 2.142 | 49.406 | 5.974 | 10.080 | 68.271 |
| large | 29.397 | 42.246 | 143.1 | 9.597 | 4.014 | 68.351 | 296.9 | 30.403 | 88.291 |
Retained tails and memory: arrays-strings-hash/map-set
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 5.247 | 31.607 | 115.3 | 2.955 | 2.392 | 55.790 | 7.976 | 13.801 | 79.423 |
| small / Minimum ms | 3.841 | 22.431 | 89.028 | 1.801 | 1.728 | 41.497 | 5.067 | 9.038 | 55.758 |
| small / Maximum ms | 5.447 | 31.809 | 118.7 | 3.022 | 2.410 | 56.420 | 8.801 | 14.754 | 85.922 |
| small / RSS MiB | 7.500 | 10.125 | 22.875 | 2.500 | 2.375 | 45.842 | 3.625 | 22.625 | 39.115 |
| large / p95 ms | 36.373 | 54.644 | 163.0 | 14.828 | 4.953 | 88.346 | 482.3 | 41.445 | 98.866 |
| large / Minimum ms | 25.302 | 36.942 | 117.8 | 7.744 | 3.476 | 60.079 | 272.5 | 23.198 | 74.938 |
| large / Maximum ms | 36.668 | 57.108 | 165.1 | 16.897 | 5.161 | 91.744 | 488.9 | 41.951 | 105.1 |
| large / RSS MiB | 10.762 | 18.336 | 27.758 | 4.375 | 3.250 | 56.695 | 14.625 | 35.375 | 48.121 |
dynamic-programming/fibonacci
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 3.765 | 28.265 | 94.457 | 2.285 | 1.919 | 51.073 | — | 9.098 | 66.276 |
| large | 14.399 | 43.491 | 110.5 | 3.987 | 3.004 | 56.436 | — | 23.679 | 74.726 |
Retained tails and memory: dynamic-programming/fibonacci
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 4.909 | 35.449 | 103.8 | 2.663 | 2.568 | 54.830 | — | 12.367 | 83.134 |
| small / Minimum ms | 3.646 | 22.405 | 88.288 | 1.858 | 1.640 | 41.853 | — | 8.157 | 56.389 |
| small / Maximum ms | 5.082 | 35.997 | 104.0 | 2.693 | 2.654 | 55.308 | — | 14.567 | 83.439 |
| small / RSS MiB | 7.375 | 10.000 | 22.625 | 2.500 | 2.375 | 45.844 | — | 22.000 | 39.090 |
| large / p95 ms | 19.022 | 56.952 | 144.9 | 5.338 | 3.405 | 67.755 | — | 27.892 | 93.297 |
| large / Minimum ms | 13.522 | 39.400 | 98.868 | 3.259 | 2.561 | 48.543 | — | 19.785 | 62.156 |
| large / Maximum ms | 19.505 | 61.134 | 148.7 | 5.881 | 3.463 | 69.818 | — | 28.512 | 103.8 |
| large / RSS MiB | 7.375 | 10.000 | 22.750 | 2.438 | 2.375 | 53.654 | — | 32.375 | 46.000 |
graphs-trees-search/bfs
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 5.700 | 25.857 | 95.337 | 2.744 | 2.765 | 53.635 | — | 12.086 | 70.161 |
| large | 96.598 | 114.8 | 159.1 | 46.830 | 25.150 | 140.3 | — | 42.816 | 135.0 |
Retained tails and memory: graphs-trees-search/bfs
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 6.249 | 28.477 | 124.8 | 4.587 | 3.304 | 65.003 | — | 15.472 | 81.984 |
| small / Minimum ms | 5.194 | 22.664 | 82.952 | 2.405 | 2.572 | 45.768 | — | 10.323 | 58.578 |
| small / Maximum ms | 6.295 | 28.545 | 127.9 | 5.761 | 3.437 | 65.260 | — | 17.538 | 83.489 |
| small / RSS MiB | 7.500 | 10.125 | 22.625 | 2.562 | 2.438 | 47.594 | — | 24.375 | 41.127 |
| large / p95 ms | 118.0 | 136.2 | 201.0 | 58.505 | 29.161 | 183.7 | — | 57.827 | 160.0 |
| large / Minimum ms | 88.516 | 95.981 | 140.9 | 42.692 | 19.369 | 122.4 | — | 38.338 | 118.8 |
| large / Maximum ms | 121.0 | 140.7 | 217.9 | 58.577 | 30.139 | 204.4 | — | 58.570 | 165.0 |
| large / RSS MiB | 12.252 | 13.793 | 26.000 | 6.500 | 5.625 | 65.004 | — | 41.625 | 54.299 |
structured-data/json-transform
| Size | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small | 5.973 | 37.346 | 117.1 | — | — | 56.753 | — | 10.968 | 68.427 |
| large | 122.5 | 109.9 | 212.7 | — | — | 108.6 | — | 29.967 | 122.3 |
Retained tails and memory: structured-data/json-transform
| Size / metric | nift | python | ruby | lua54 | luajit | node | bash | bun | deno |
|---|---|---|---|---|---|---|---|---|---|
| small / p95 ms | 7.286 | 40.889 | 126.0 | — | — | 102.5 | — | 14.979 | 89.887 |
| small / Minimum ms | 4.735 | 32.226 | 96.709 | — | — | 40.181 | — | 9.954 | 60.705 |
| small / Maximum ms | 7.426 | 41.311 | 128.0 | — | — | 134.2 | — | 15.194 | 101.0 |
| small / RSS MiB | 8.250 | 10.875 | 23.000 | — | — | 46.344 | — | 23.750 | 40.350 |
| large / p95 ms | 148.2 | 130.6 | 249.6 | — | — | 245.8 | — | 41.836 | 143.5 |
| large / Minimum ms | 95.278 | 89.103 | 176.6 | — | — | 95.847 | — | 27.827 | 114.9 |
| large / Maximum ms | 162.9 | 133.9 | 257.6 | — | — | 315.4 | — | 48.103 | 145.5 |
| large / RSS MiB | 34.041 | 32.875 | 40.375 | — | — | 68.779 | — | 40.125 | 58.744 |
| Runtime | No-op RSS MiB | Large loops RSS MiB |
|---|---|---|
| nift | 6.875 | 7.375 |
| python | 10.000 | 10.000 |
| ruby | 22.625 | 22.625 |
| lua54 | 2.250 | 2.375 |
| luajit | 2.375 | 2.375 |
| node | 43.965 | 51.717 |
| bash | 3.375 | 3.375 |
| bun | 20.000 | 26.125 |
| deno | 38.811 | 42.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.
| System | Measured version |
|---|---|
| nift | Nift v4.13.0 |
| python | Python 3.12.3 |
| ruby | ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux-gnu] |
| lua54 | Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio |
| luajit | LuaJIT 2.1.1703358377 -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/ |
| node | v24.22.3 |
| bash | GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu) |
| bun | 1.4.5 |
| deno | deno 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