Skip to content

Fix table.insert arity and return values across Lua profiles - #166

Merged
Eli Pinkerton (wallstop) merged 3 commits into
mainfrom
fix/session-192-table-insert
Nov 24, 2026
Merged

Eli Pinkerton (wallstop) merged 3 commits into
mainfrom
fix/session-192-table-insert

Conversation

@wallstop

@wallstop Eli Pinkerton (wallstop) commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #160.

table.insert selects append or positional insertion by normalized Lua argument count. Both forms return zero values, and the positional form accepts an explicit nil. They share versioned length conversion and integer width. Positional insertion preserves the reference bounds and shifts sparse ranges without scanning absent keys.

The arity fixture failed on the base in all five profiles. The append and positional length fixtures each failed in four profiles before their respective review fixes. The final change passed 231 focused TableModule tests, 15,744 full quick tests, CSharpier, pre-commit, and the enforced Lua 5.1–5.5 corpus. Independent probes verified signed and unsigned bounds and exact wide keys. Docker and a Unity player were unavailable locally.

Release note

Fixed Lua table.insert to honor explicit nil, argument count, and zero return values across all supported Lua profiles.

The separate indexed-access and proxy behavior is tracked in #162.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR changes table.insert argument handling, return values, and Lua-version-specific position and append-length behavior. It adds cross-version tests and fixtures, updates the standard library reference, and records related parity and backlog updates.

Changes: Table Insert Compatibility

Layer / File(s) Summary
Argument handling and compatibility behavior
docs/lua51-stdlib-reference.md, src/runtime/WallstopStudios.NovaSharp.Interpreter/CoreLib/TableModule.cs
table.insert now selects append or positional insertion by argument count and returns no values. Position parsing, append-length handling, and sparse-key behavior vary by Lua profile. The reference describes the zero-value returns and positional arguments.
Cross-version tests and parity tracking
src/tests/WallstopStudios.NovaSharp.Interpreter.Tests.TUnit/Modules/TableModuleTUnitTests.cs, src/tests/WallstopStudios.NovaSharp.Interpreter.Tests/LuaFixtures/TableModuleTUnitTests/*, src/tests/WallstopStudios.NovaSharp.Interpreter.Tests/LuaFixtures/manifest.json, PLAN.md, progress/session-192-table-insert-arity.md
Tests and fixtures cover argument counts, results, append lengths, and profile-specific behavior. The manifest adds the fixtures and expands the existing fixture’s version coverage. The plan and session report record parity tracking, test evidence, and a generic-loop task.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related issues

  • Issue 162 concerns remaining table.insert parity differences. This PR adds profile-specific append __len handling, but the session notes track further table insertion behavior differences.
Merge Risk: Minimal · up to ad8c6

table.insert now distinguishes the append and positional forms by argument count, returns no values, and keeps Lua version-specific position behavior. Regression tests and fixtures cover all five profiles. No unresolved concrete defect remains, so the change looks ready to merge.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description covers the required sections in substance. The Summary is present and explains that table.insert now selects append or positional insertion by normalized argument count, that both form… 1) Add the Analyzer Coverage result: state whether dotnet build src/NovaSharp.sln -c Release -nologo was run and its outcome, and list any additional analyzer or build commands. 2) Complete the Checklist: confirm that docs were updated (d…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title states the main change: table.insert arity handling and return values across Lua profiles. The PR objectives and the TableModule.cs changes match this. The title is specific and concise.
Linked Issues check Passed Directly linked issue #160 has coding requirements only. Requirement 1 (distinguish forms by normalized argument count, including explicit nil and expanded final expressions): at head, Insert in Table…
Out of Scope Changes check Passed All changes connect to #160 or to its supporting work. TableModule.cs contains the implementation. TableModuleTUnitTests.cs, the two new Lua fixtures, the edited InsertUsesLenMetamethodWhenPresent fix…
Full details: Linked Issues check

Explanation

Directly linked issue #160 has coding requirements only. Requirement 1 (distinguish forms by normalized argument count, including explicit nil and expanded final expressions): at head, Insert in TableModule.cs branches on args.Count == 2 for append and args.Count == 3 for positional insertion. Any other count throws 'wrong number of arguments to 'insert''. The positional value is read from args[2], so explicit nil is stored and is not used to select the form. Requirement 2 (reference mutation and version-specific position/error behavior): the code keeps Lua 5.1 position handling (raw Length, NarrowInsertNumber truncation for 5.1/5.2, bounds checks only for non-5.1 versions), and mutates the Table reference in place. Requirement 3 (zero results from both forms): both paths return LuaValue.Void. Requirement 4 (TUnit and Lua fixtures across five profiles): the PR summary lists InsertUsesArgumentCountAndReturnsNoValues and InsertAppendUsesProfileLengthSemantics TUnit tests with matching Lua fixtures, marked comparable for 5.1–5.5, and the manifest is updated. Limit: the diff tool output was truncated at 16000 bytes, so the sparse-shift helper and the remaining positional parsing were not read directly. Those parts rely on the PR summary and author-reported test results.

Full details: Out of Scope Changes check

Explanation

All changes connect to #160 or to its supporting work. TableModule.cs contains the implementation. TableModuleTUnitTests.cs, the two new Lua fixtures, the edited InsertUsesLenMetamethodWhenPresent fixture, and manifest.json are tests for the new behavior. docs/lua51-stdlib-reference.md documents the zero-return behavior of table.insert. progress/session-192-table-insert-arity.md is a session report for this fix. PLAN.md only moves the backlog item from #160 to #162 and adds the #164 queue entry. This is tracking and documentation that supports the change set. It does not alter runtime behavior. No unrelated code change was identified in the reviewed summary. The truncated diff prevents a full line-by-line check of every hunk.

Full details: Description check

Explanation

The description covers the required sections in substance. The Summary is present and explains that table.insert now selects append or positional insertion by normalized argument count, that both forms return zero values, and that explicit nil is accepted. The Testing section lists concrete results: 231 focused TableModule tests, 15,744 full quick tests, CSharpier, pre-commit, and the Lua 5.1–5.5 corpus all passed, and Docker and a Unity player were unavailable. Two gaps remain. First, the Analyzer Coverage section is missing: the description does not state whether dotnet build src/NovaSharp.sln -c Release -nologo was run. Second, the Checklist is missing: the description does not say whether the docs were updated (the change touches docs/lua51-stdlib-reference.md, so this item is relevant) or whether the benchmark and Lua comparison PR comments were reviewed. The description also reports 231 focused tests and 15,744 full quick tests, while the PR objectives report 221 TableModule tests and 15,726 full quick tests. The counts need to be reconciled. The description does not name the required sticky benchmark comparison or Lua comparison outcome. The description also does not state whether PR CI is green.

Resolution

  1. Add the Analyzer Coverage result: state whether dotnet build src/NovaSharp.sln -c Release -nologo was run and its outcome, and list any additional analyzer or build commands. 2) Complete the Checklist: confirm that docs were updated (docs/lua51-stdlib-reference.md is changed, so state this), state whether scripts/README.md applies, state the PR CI status, and state whether the benchmark and Lua comparison PR comments were reviewed. 3) Reconcile the test counts: the description says 231 TableModule tests and 15,744 full quick tests, but the PR objectives say 221 and 15,726. 4) In the Testing section, mark any required check that was not run as not run with its residual risk.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review details

Context from checks skipped due to timeout: 20

  • GitHub Check: CodeRabbit
  • GitHub Check: comparison StringPatternOps
  • GitHub Check: comparison StringFormat
  • GitHub Check: comparison SpectralNorm
  • GitHub Check: comparison TableIntFillIter
  • GitHub Check: comparison NBody
  • GitHub Check: comparison TableStringKeyLookup
  • GitHub Check: comparison NumericLoops
  • GitHub Check: comparison BinaryTrees
  • GitHub Check: comparison StringConcatChains
  • GitHub Check: comparison CoroutinePingPong
  • GitHub Check: comparison FibonacciRecursive
  • GitHub Check: comparison TableInsertRemove
  • GitHub Check: comparison TowerOfHanoi
  • GitHub Check: comparison EightQueens
  • GitHub Check: comparison TableMutation
  • GitHub Check: runtime benchmark
  • GitHub Check: comparison TableNextTraversal
  • GitHub Check: comparison LuaToClrInterop
  • GitHub Check: lint
Additional context used

Learnings: 1

Common learnings

Learnt from: CR
Repo: Ambiguous-Interactive/NovaSharp

Timestamp: 2026-11-24T06:53:23.647Z
Learning: Source excerpt:
# NovaSharp engineering policy

1. Preserve exact Lua 5.1–5.5 behavior first, then runtime speed, allocations, Unity compatibility (Mono and IL2CPP/AOT), and clarity, in that order. Resolve semantic disputes with the matching reference Lua. Fix the implementation when it differs from the oracle.
Learnt from: CR
Repo: Ambiguous-Interactive/NovaSharp

Timestamp: 2026-11-24T06:53:23.647Z
Learning: Source excerpt:
# NovaSharp engineering policy

1. For material changes, follow the [evidence-driven workflow](../.llm/workflows/evidence-driven-change.md). Always add both C# tests and Lua fixtures and regenerate the corpus when adding either C# or Lua regression coverage or changing runtime or interop code. At the top of each fixture use only the hand-authored tags `lua-versions`, `novasharp-only`, and `expects-error`. Run tests across Lua 5.1–5.5. Compare Lua behavior changes against the matching reference interpreters.
Learnt from: CR
Repo: Ambiguous-Interactive/NovaSharp

Timestamp: 2026-11-24T06:53:23.753Z
Learning: Applicability reference:
AGENTS.md: # NovaSharp engineering policy
1. After material changes or investigations, apply [post-work reflection](.llm/skills/post-work-reflection/SKILL.md) and seek independent review when available.

Source excerpt:
# Skill: Post-Work Reflection and Self-Improvement

## Quality and Safety Rules

- Preserve the priority hierarchy: Lua correctness, speed, memory, Unity
  compatibility, then clarity.
Learnt from: CR
Repo: Ambiguous-Interactive/NovaSharp

Timestamp: 2026-11-24T06:53:23.647Z
Learning: Source excerpt:
# NovaSharp engineering policy

1. For material changes, follow the [evidence-driven workflow](.llm/workflows/evidence-driven-change.md). Always add both C# tests and Lua fixtures and regenerate the corpus when adding either C# or Lua regression coverage or changing runtime or interop code. At the top of each fixture use only the hand-authored tags `lua-versions`, `novasharp-only`, and `expects-error`. Run tests across Lua 5.1–5.5. Compare Lua behavior changes against the matching reference interpreters.
Additional comments: 1

src/runtime/WallstopStudios.NovaSharp.Interpreter/CoreLib/TableModule.cs: 1

380-382: Functional Correctness

The optimized Lua 5.1 negative shift preserves the dense-shift result for the arrangements of keys and holes checked here. The sparse helper snapshots every captured non-nil key in [index, 0] before any write. It then clears those sources and restores each value at key + 1. Holes stay nil, and the inserted value is written last. No destination from index + 1 through the old length plus one is left with the wrong neighbor.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 1 finding.

The append path rejects valid insertions when a length metamethod returns a negative value.

9010 in, 1975 out tokens. Comments only; this review never blocks a merge.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark Comparison Deltas

Lower values are better for mean, P95, GC collections, and allocated bytes. Positive deltas mean NovaSharp is above the comparison row or self baseline.

External comparison rows are apples-to-apples: NovaSharp and the comparison runtimes are restored, built, and benchmarked in the same workflow job on the same runner.
External rows are report-only; regressed=true is reserved for NovaSharp self-baseline regressions once checked-in baseline artifacts exist.

  • Current NovaSharp artifacts: artifacts/benchmarkdotnet/runtime-download
  • Same-run comparison artifacts: artifacts/benchmarkdotnet/comparison-download
  • Checked-in self baseline artifacts: docs/performance-history/current-baseline
  • Same-run comparison groups: 50
  • Same-run scenario/operation rows with NovaSharp: 50
  • Same-run external runtime cells: 166
  • Expected external runtime cells missing: 0
  • Expected reference lua CLI rows missing: 0
  • Phase A0 scoreboard baseline rows: 50
  • Phase A0 gate failures: 0
  • Self baseline matches: 0 of 18 current rows and 0 baseline rows

Phase A0 Scoreboard

This scoreboard is the compact Phase A0 view: rows are benchmark scenarios/operations, and columns show NovaSharp current, NovaSharp baseline, MoonSharp, NLua, Lua-CSharp, and reference lua CLI wall-time context when present.
The phase gate, when enabled, checks NovaSharp/NLua same-run timing ratios against the checked-in phase baseline only when NovaSharp's own timing metric also regresses, and checks NovaSharp allocated B/op regressions with a small runner-noise tolerance.

  • Phase baseline JSON: progress/benchmarks/phase-a0-scoreboard-baseline.json

Scoreboard Time

Scenario Operation NovaSharp Current Mean / P95 NovaSharp Baseline Mean / P95 MoonSharp Mean / P95 NLua Mean / P95 LuaCSharp Mean / P95 Lua CLI Mean / P95
BinaryTrees Cached Compile 96.2 ns / 97.1 ns 90.3 ns / 90.5 ns 71.7 us / 73.5 us 27.5 us / 28.2 us 16.8 us / 17 us -
BinaryTrees Compile 285 us / 295 us 270 us / 302 us 1.19 ms / 1.42 ms 202 us / 203 us 24.5 us / 24.7 us -
BinaryTrees Execute 80.5 ms / 81.4 ms 78.8 ms / 79.5 ms 41.9 ms / 42.3 ms 18.1 ms / 18.1 ms 15.6 ms / 15.7 ms 9.33 ms / 10 ms
CoroutinePingPong Cached Compile 89.4 ns / 91.1 ns 104 ns / 104 ns 73.9 us / 76.7 us 31.7 us / 32.5 us 19.2 us / 19.3 us -
CoroutinePingPong Compile 263 us / 280 us 270 us / 275 us 1.56 ms / 1.82 ms 207 us / 208 us 26.6 us / 26.8 us -
CoroutinePingPong Execute 631 us / 634 us 612 us / 615 us 788 us / 838 us 136 us / 137 us 209 us / 211 us 1.26 ms / 1.29 ms
EightQueens Cached Compile 103 ns / 104 ns 92.6 ns / 92.8 ns 109 us / 117 us 39.2 us / 39.6 us 20.4 us / 20.5 us -
EightQueens Compile 237 us / 249 us 273 us / 278 us 1.06 ms / 1.35 ms 179 us / 180 us 27.5 us / 27.6 us -
EightQueens Execute 2.86 ms / 2.86 ms 4.25 ms / 4.33 ms 1.73 ms / 1.73 ms 238 us / 241 us 341 us / 345 us 1.05 ms / 1.14 ms
FibonacciRecursive Cached Compile 71.7 ns / 72.3 ns 94.3 ns / 96.1 ns 21.5 us / 22.5 us 8.74 us / 8.95 us 5.06 us / 5.07 us -
FibonacciRecursive Compile 184 us / 194 us 239 us / 245 us 982 us / 1.27 ms 124 us / 124 us 11.1 us / 11.4 us -
FibonacciRecursive Execute 1.92 s / 1.92 s 2.32 s / 2.33 s 615 ms / 631 ms 103 ms / 103 ms 203 ms / 206 ms 45.3 ms / 46.6 ms
NBody Cached Compile 60.1 ns / 61.1 ns 93.4 ns / 93.7 ns 203 us / 223 us 64.7 us / 66.6 us 52.1 us / 53.3 us -
NBody Compile 239 us / 244 us 406 us / 463 us 984 us / 1.18 ms 155 us / 159 us 57.1 us / 58.5 us -
NBody Execute 3.67 ms / 3.75 ms 6.69 ms / 6.7 ms 2.24 ms / 2.3 ms 340 us / 348 us 565 us / 572 us 1.07 ms / 1.22 ms
NumericLoops Cached Compile 77.6 ns / 78.8 ns 86.7 ns / 90.6 ns 27.7 us / 29.2 us 13 us / 13.3 us 7.37 us / 7.38 us -
NumericLoops Compile 178 us / 186 us 208 us / 214 us 964 us / 1.13 ms 129 us / 130 us 13.4 us / 13.8 us -
NumericLoops Execute 2.68 ms / 2.69 ms 2.4 ms / 2.41 ms 1.28 ms / 1.29 ms 403 us / 405 us 455 us / 459 us 1.14 ms / 1.17 ms
SpectralNorm Cached Compile 94.3 ns / 95.1 ns 83.9 ns / 92.8 ns 165 us / 172 us 59.7 us / 60.3 us 44.5 us / 45.1 us -
SpectralNorm Compile 483 us / 669 us 261 us / 271 us 1.72 ms / 2.17 ms 236 us / 238 us 51.9 us / 52.3 us -
SpectralNorm Execute 65.9 ms / 66.1 ms 41.1 ms / 41.2 ms 32.9 ms / 33.1 ms 6.75 ms / 6.77 ms 6.76 ms / 6.82 ms 3.44 ms / 3.48 ms
StringConcatChains Cached Compile 96 ns / 96.9 ns 96.9 ns / 97.4 ns 24.7 us / 26.1 us 11.1 us / 11.5 us 5.3 us / 5.31 us -
StringConcatChains Compile 270 us / 297 us 262 us / 267 us 1.08 ms / 1.19 ms 180 us / 182 us 12.7 us / 12.9 us -
StringConcatChains Execute 142 us / 144 us 147 us / 148 us 102 us / 105 us 71.2 us / 72.2 us 79.9 us / 80.7 us 1.3 ms / 1.35 ms
StringFormat Cached Compile 94.1 ns / 94.3 ns 189 ns / 190 ns 29.5 us / 31.2 us 12.7 us / 12.8 us 7.21 us / 7.24 us -
StringFormat Compile 275 us / 407 us 276 us / 438 us 1.2 ms / 1.42 ms 162 us / 163 us 14.6 us / 14.8 us -
StringFormat Execute 2.73 ms / 2.75 ms 2.68 ms / 2.7 ms 2.62 ms / 2.64 ms 410 us / 411 us 325 us / 326 us 1.57 ms / 1.63 ms
StringPatternOps Cached Compile 97.1 ns / 98.5 ns 95.1 ns / 95.6 ns 52.1 us / 54.3 us 23.6 us / 24.1 us 12.6 us / 12.9 us -
StringPatternOps Compile 229 us / 247 us 250 us / 261 us 1.04 ms / 1.35 ms 185 us / 188 us 19.6 us / 19.7 us -
StringPatternOps Execute 794 us / 801 us 928 us / 931 us 1.71 ms / 1.73 ms 418 us / 424 us 983 us / 1.01 ms 1.16 ms / 1.2 ms
TableInsertRemove Cached Compile 89.2 ns / 89.6 ns 94.1 ns / 96.2 ns 45.8 us / 47.9 us 20.9 us / 21.5 us 13.5 us / 13.6 us -
TableInsertRemove Compile 221 us / 245 us 261 us / 266 us 1.58 ms / 2.02 ms 190 us / 192 us 20.3 us / 20.5 us -
TableInsertRemove Execute 875 us / 877 us 858 us / 862 us 1.22 ms / 1.25 ms 671 us / 672 us 148 us / 149 us 1.37 ms / 1.39 ms
TableIntFillIter Cached Compile 83.9 ns / 85.3 ns 94.7 ns / 95.4 ns 30 us / 31.3 us 12.5 us / 12.7 us 5.2 us / 5.21 us -
TableIntFillIter Compile 196 us / 208 us 251 us / 279 us 991 us / 1.27 ms 142 us / 157 us 11.5 us / 12.7 us -
TableIntFillIter Execute 1.62 ms / 1.78 ms 2.47 ms / 2.47 ms 823 us / 826 us 80.1 us / 80.5 us 102 us / 112 us 904 us / 941 us
TableMutation Cached Compile 73.6 ns / 74 ns 91.2 ns / 93.4 ns 35.4 us / 39.2 us 14.4 us / 14.7 us 8.85 us / 8.86 us -
TableMutation Compile 189 us / 201 us 252 us / 268 us 936 us / 1.15 ms 129 us / 130 us 15 us / 15.2 us -
TableMutation Execute 117 us / 117 us 136 us / 137 us 63.1 us / 63.6 us 10.6 us / 10.6 us 11.4 us / 11.4 us 985 us / 996 us
TableNextTraversal Cached Compile 94.1 ns / 95.3 ns 97.8 ns / 98.3 ns 48 us / 51.3 us 19.2 us / 19.6 us 12.8 us / 12.9 us -
TableNextTraversal Compile 287 us / 308 us 275 us / 316 us 1.13 ms / 1.3 ms 192 us / 194 us 20.5 us / 20.7 us -
TableNextTraversal Execute 1.02 ms / 1.02 ms 948 us / 949 us 596 us / 603 us 339 us / 339 us 270 us / 271 us 1.45 ms / 1.51 ms
TableStringKeyLookup Cached Compile 93 ns / 94.6 ns 93.7 ns / 95.8 ns 39.8 us / 42.2 us 15.4 us / 15.8 us 8.93 us / 8.95 us -
TableStringKeyLookup Compile 247 us / 282 us 249 us / 262 us 1.08 ms / 1.2 ms 189 us / 190 us 16 us / 16.2 us -
TableStringKeyLookup Execute 3.31 ms / 3.33 ms 3.37 ms / 3.37 ms 2.41 ms / 2.47 ms 1.51 ms / 1.52 ms 1.62 ms / 1.63 ms 2.17 ms / 2.49 ms
TowerOfHanoi Cached Compile 89 ns / 89.3 ns 79 ns / 79.5 ns 37.5 us / 38.8 us 16.3 us / 16.4 us 9.93 us / 10 us -
TowerOfHanoi Compile 236 us / 249 us 287 us / 470 us 1.15 ms / 1.56 ms 190 us / 191 us 16.3 us / 16.4 us -
TowerOfHanoi Execute 31.5 ms / 31.6 ms 24.8 ms / 24.9 ms 15.4 ms / 15.6 ms 3.17 ms / 3.18 ms 4.28 ms / 4.4 ms 2.15 ms / 2.65 ms
TwoArgAdd ClrToLuaInterop 723 ns / 724 ns 700 ns / 701 ns 280 ns / 282 ns 293 ns / 295 ns 136 ns / 138 ns -
TwoArgAdd LuaToClrInterop 568 ns / 572 ns 558 ns / 563 ns 293 ns / 296 ns 894 ns / 896 ns 83.1 ns / 83.9 ns -

Scoreboard Memory and GC

GC columns are collections per 1,000 operations. Reference lua CLI rows are process wall-time context, so their memory cells are -.

Scenario Operation NovaSharp Current Alloc / GC0/1/2 NovaSharp Baseline Alloc / GC0/1/2 MoonSharp Alloc / GC0/1/2 NLua Alloc / GC0/1/2 LuaCSharp Alloc / GC0/1/2 Lua CLI Alloc / GC0/1/2
BinaryTrees Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 43.9 KB / 2.686 / 1.343 / 0 816 B / 0.03052 / 0 / 0 3 KB / 0.1831 / 0 / 0 -
BinaryTrees Compile 353 KB / 39.06 / 30.27 / 25.39 369 KB / 40.04 / 31.25 / 25.39 2.37 MB / 216.8 / 207 / 201.2 7.39 KB / 0.2441 / 0 / 0 24.9 KB / 1.495 / 0.09155 / 0 -
BinaryTrees Execute 9.6 MB / 571.4 / 142.9 / 0 9.6 MB / 571.4 / 142.9 / 0 74 MB / 4615 / 1846 / 0 144 B / 0 / 0 / 0 9.73 MB / 593.8 / 156.2 / 0 -
CoroutinePingPong Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.002146 / 0 / 0 46.8 KB / 2.808 / 1.343 / 0 848 B / 0 / 0 / 0 3.7 KB / 0.2136 / 0 / 0 -
CoroutinePingPong Compile 356 KB / 38.09 / 30.27 / 24.41 371 KB / 28.32 / 27.34 / 25.39 2.37 MB / 210.9 / 199.2 / 195.3 7.43 KB / 0.2441 / 0 / 0 25.6 KB / 1.556 / 0.09155 / 0 -
CoroutinePingPong Execute 80.5 KB / 4.883 / 0 / 0 80.5 KB / 0.9766 / 0 / 0 2.51 MB / 180.7 / 150.4 / 149.4 24 B / 0 / 0 / 0 8.48 KB / 0.4883 / 0 / 0 -
EightQueens Cached Compile 184 B / 0.002146 / 0 / 0 184 B / 0.01097 / 0 / 0 69.2 KB / 0.7324 / 0.6104 / 0 1.09 KB / 0 / 0 / 0 3.12 KB / 0.03052 / 0 / 0 -
EightQueens Compile 372 KB / 28.32 / 26.37 / 25.39 387 KB / 41.99 / 32.23 / 26.37 2.4 MB / 193.4 / 191.4 / 191.4 7.69 KB / 0 / 0 / 0 25 KB / 0.3052 / 0 / 0 -
EightQueens Execute 7.72 KB / 0 / 0 / 0 7.72 KB / 0 / 0 / 0 3.33 MB / 41.02 / 1.953 / 0 24 B / 0 / 0 / 0 3.24 KB / 0 / 0 / 0 -
FibonacciRecursive Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 17.9 KB / 1.068 / 0.5188 / 0 416 B / 0.01526 / 0 / 0 1.55 KB / 0.09155 / 0 / 0 -
FibonacciRecursive Compile 337 KB / 39.06 / 30.76 / 26.37 353 KB / 38.09 / 30.27 / 24.41 2.34 MB / 203.1 / 193.4 / 189.5 7.02 KB / 0.2441 / 0 / 0 23.5 KB / 1.434 / 0.09155 / 0 -
FibonacciRecursive Execute 168 B / 0 / 0 / 0 168 B / 0 / 0 / 0 1.62 GB / 1.04e+05 / 1000 / 0 144 B / 0 / 0 / 0 200 B / 0 / 0 / 0 -
NBody Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 192 KB / 11.72 / 5.859 / 0 3.02 KB / 0.1221 / 0 / 0 14.9 KB / 0.8545 / 0 / 0 -
NBody Compile 449 KB / 45.9 / 32.23 / 26.37 465 KB / 42.97 / 29.3 / 23.44 2.53 MB / 209 / 195.3 / 183.6 9.59 KB / 0.4883 / 0.2441 / 0 36.7 KB / 2.197 / 0.1831 / 0 -
NBody Execute 6.69 KB / 0 / 0 / 0 6.69 KB / 0 / 0 / 0 6.24 MB / 390.6 / 15.62 / 0 144 B / 0 / 0 / 0 3.62 KB / 0 / 0 / 0 -
NumericLoops Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.002146 / 0 / 0 21.9 KB / 1.312 / 0.6409 / 0 464 B / 0.01526 / 0 / 0 2.77 KB / 0.1678 / 0 / 0 -
NumericLoops Compile 339 KB / 39.06 / 30.27 / 26.37 355 KB / 28.81 / 27.83 / 26.37 2.35 MB / 197.3 / 189.5 / 183.6 7.05 KB / 0.2441 / 0 / 0 24.7 KB / 1.495 / 0.09155 / 0 -
NumericLoops Execute 0 B / 0 / 0 / 0 0 B / 0 / 0 / 0 2.59 MB / 162.1 / 0 / 0 144 B / 0 / 0 / 0 0 B / 0 / 0 / 0 -
SpectralNorm Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.002146 / 0 / 0 170 KB / 6.348 / 3.174 / 0 1.54 KB / 0.06104 / 0 / 0 4.54 KB / 0.2441 / 0 / 0 -
SpectralNorm Compile 396 KB / 39.06 / 29.3 / 23.44 411 KB / 28.32 / 26.37 / 25.39 2.44 MB / 226.6 / 214.8 / 207 8.13 KB / 0.4883 / 0 / 0 26.4 KB / 1.587 / 0.06104 / 0 -
SpectralNorm Execute 7.68 KB / 0 / 0 / 0 7.68 KB / 0 / 0 / 0 61.9 MB / 3875 / 187.5 / 0 144 B / 0 / 0 / 0 4.88 KB / 0 / 0 / 0 -
StringConcatChains Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 13.6 KB / 0.824 / 0.3967 / 0 368 B / 0.01526 / 0 / 0 1.7 KB / 0.09918 / 0 / 0 -
StringConcatChains Compile 332 KB / 36.13 / 28.32 / 24.41 348 KB / 38.09 / 28.32 / 25.39 2.34 MB / 218.8 / 210.9 / 205.1 6.97 KB / 0.2441 / 0 / 0 23.6 KB / 1.434 / 0.09155 / 0 -
StringConcatChains Execute 143 KB / 8.545 / 0 / 0 143 KB / 8.545 / 0 / 0 222 KB / 13.55 / 0.1221 / 0 144 B / 0 / 0 / 0 141 KB / 8.545 / 0 / 0 -
StringFormat Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 17.1 KB / 1.038 / 0.5188 / 0 432 B / 0.01526 / 0 / 0 2.76 KB / 0.1678 / 0 / 0 -
StringFormat Compile 336 KB / 37.11 / 27.34 / 24.41 351 KB / 38.09 / 27.34 / 24.41 2.34 MB / 214.8 / 205.1 / 201.2 7.02 KB / 0.2441 / 0 / 0 24.6 KB / 1.495 / 0.09155 / 0 -
StringFormat Execute 2.94 MB / 183.6 / 0 / 0 2.94 MB / 183.6 / 0 / 0 5.9 MB / 367.2 / 3.906 / 0 144 B / 0 / 0 / 0 152 KB / 9.277 / 0 / 0 -
StringPatternOps Cached Compile 184 B / 0.002146 / 0 / 0 184 B / 0.01097 / 0 / 0 36.2 KB / 0.4272 / 0.3662 / 0 672 B / 0 / 0 / 0 3.56 KB / 0.03052 / 0 / 0 -
StringPatternOps Compile 348 KB / 26.37 / 25.39 / 24.41 363 KB / 39.06 / 29.3 / 25.39 2.36 MB / 185.5 / 183.6 / 183.6 7.27 KB / 0 / 0 / 0 25.5 KB / 0.3052 / 0 / 0 -
StringPatternOps Execute 661 KB / 7.812 / 0 / 0 661 KB / 40.04 / 0 / 0 5.07 MB / 62.5 / 0 / 0 144 B / 0 / 0 / 0 446 KB / 3.906 / 0 / 0 -
TableInsertRemove Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 32.5 KB / 1.953 / 0.9766 / 0 632 B / 0.03052 / 0 / 0 3.05 KB / 0.1831 / 0 / 0 -
TableInsertRemove Compile 346 KB / 38.09 / 28.32 / 25.39 361 KB / 39.06 / 28.32 / 25.39 2.36 MB / 210.9 / 199.2 / 199.2 7.24 KB / 0.2441 / 0 / 0 25 KB / 1.526 / 0.09155 / 0 -
TableInsertRemove Execute 36.1 KB / 1.953 / 0 / 0 143 KB / 7.812 / 0 / 0 1.11 MB / 68.36 / 7.812 / 0 144 B / 0 / 0 / 0 12 KB / 0.7324 / 0 / 0 -
TableIntFillIter Cached Compile 184 B / 0.002146 / 0 / 0 184 B / 0.01097 / 0 / 0 40.4 KB / 0.2441 / 0.1831 / 0 504 B / 0 / 0 / 0 1.96 KB / 0.02289 / 0 / 0 -
TableIntFillIter Compile 341 KB / 27.83 / 26.37 / 25.39 356 KB / 39.06 / 29.3 / 25.39 2.35 MB / 185.5 / 183.6 / 183.6 7.11 KB / 0 / 0 / 0 23.9 KB / 0.2899 / 0.01526 / 0 -
TableIntFillIter Execute 32.7 KB / 0 / 0 / 0 32.7 KB / 0 / 0 / 0 1.9 MB / 23.44 / 6.836 / 0 144 B / 0 / 0 / 0 24.1 KB / 0.2441 / 0 / 0 -
TableMutation Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 29.4 KB / 1.77 / 0.8545 / 0 568 B / 0.03052 / 0.01526 / 0 2.05 KB / 0.1221 / 0 / 0 -
TableMutation Compile 344 KB / 39.55 / 31.25 / 26.37 359 KB / 39.06 / 31.25 / 25.39 2.35 MB / 197.3 / 185.5 / 183.6 7.15 KB / 0.2441 / 0 / 0 23.9 KB / 1.465 / 0.09155 / 0 -
TableMutation Execute 8.52 KB / 0.4883 / 0 / 0 8.52 KB / 0.4883 / 0 / 0 129 KB / 7.812 / 0.7324 / 0 144 B / 0 / 0 / 0 6.02 KB / 0.3662 / 0 / 0 -
TableNextTraversal Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.007272 / 0 / 0 30.8 KB / 1.831 / 0.9155 / 0 648 B / 0.03052 / 0 / 0 2.21 KB / 0.1221 / 0 / 0 -
TableNextTraversal Compile 345 KB / 38.09 / 31.25 / 25.39 360 KB / 34.18 / 30.27 / 25.39 2.36 MB / 212.9 / 205.1 / 199.2 7.24 KB / 0.2441 / 0 / 0 24.1 KB / 1.465 / 0.09155 / 0 -
TableNextTraversal Execute 497 KB / 29.3 / 5.859 / 0 497 KB / 19.53 / 4.883 / 0 864 KB / 52.73 / 15.62 / 0 144 B / 0 / 0 / 0 111 KB / 6.348 / 0.9766 / 0 -
TableStringKeyLookup Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 41.3 KB / 1.526 / 0.7324 / 0 528 B / 0.03052 / 0 / 0 2.03 KB / 0.1221 / 0 / 0 -
TableStringKeyLookup Compile 342 KB / 38.09 / 29.3 / 25.39 357 KB / 39.06 / 30.27 / 25.39 2.35 MB / 212.9 / 203.1 / 199.2 7.13 KB / 0.2441 / 0 / 0 23.9 KB / 1.465 / 0.09155 / 0 -
TableStringKeyLookup Execute 423 KB / 23.44 / 3.906 / 0 423 KB / 23.44 / 3.906 / 0 2.36 MB / 144.5 / 35.16 / 0 144 B / 0 / 0 / 0 527 KB / 31.25 / 3.906 / 0 -
TowerOfHanoi Cached Compile 184 B / 0.01097 / 0 / 0 184 B / 0.01097 / 0 / 0 25.6 KB / 1.526 / 0.7324 / 0 496 B / 0 / 0 / 0 2.34 KB / 0.1373 / 0 / 0 -
TowerOfHanoi Compile 341 KB / 38.09 / 30.27 / 25.39 357 KB / 39.06 / 31.25 / 25.39 2.35 MB / 207 / 199.2 / 193.4 7.08 KB / 0.2441 / 0 / 0 24.2 KB / 1.465 / 0.09155 / 0 -
TowerOfHanoi Execute 168 B / 0 / 0 / 0 168 B / 0 / 0 / 0 33.9 MB / 2109 / 15.62 / 0 24 B / 0 / 0 / 0 144 B / 0 / 0 / 0 -
TwoArgAdd ClrToLuaInterop 0 B / 0 / 0 / 0 0 B / 0 / 0 / 0 640 B / 0.038 / 0 / 0 144 B / 0.0085 / 0 / 0 0 B / 0 / 0 / 0 -
TwoArgAdd LuaToClrInterop 0 B / 0 / 0 / 0 0 B / 0 / 0 / 0 552 B / 0.0065 / 0 / 0 504 B / 0.006 / 0 / 0 0 B / 0 / 0 / 0 -

Same-Run Runtime Matrix

Each row is one scenario/operation from the same BenchmarkDotNet comparison run. NovaSharp values are raw results; external columns show raw results plus the NovaSharp delta against that runtime.
NovaSharp comparison rows intentionally use the prepared-handle public API (PrepareString/CompiledScript.Execute) so the matrix reports the preferred execution surface.
Reference lua CLI rows, when present, are synthetic out-of-process wall-time context that includes process startup, parse, compile, and execution. Memory and GC cells are shown as - because the CLI context does not report managed allocations.

Runtime Context

  • Lua CLI wall-time: /usr/bin/lua5.4: Lua 5.4.8 Copyright (C) 1994-2025 Lua.org, PUC-Rio

NovaSharp Raw Results

This table repeats NovaSharp's own same-run values in a narrow form before the wider cross-runtime delta matrix.

Scenario Operation NovaSharp Mean / P95 NovaSharp Alloc / GC0/1/2
BinaryTrees Cached Compile 96.2 ns / 97.1 ns 184 B / 0.01097 / 0 / 0
BinaryTrees Compile 285 us / 295 us 353 KB / 39.06 / 30.27 / 25.39
BinaryTrees Execute 80.5 ms / 81.4 ms 9.6 MB / 571.4 / 142.9 / 0
CoroutinePingPong Cached Compile 89.4 ns / 91.1 ns 184 B / 0.01097 / 0 / 0
CoroutinePingPong Compile 263 us / 280 us 356 KB / 38.09 / 30.27 / 24.41
CoroutinePingPong Execute 631 us / 634 us 80.5 KB / 4.883 / 0 / 0
EightQueens Cached Compile 103 ns / 104 ns 184 B / 0.002146 / 0 / 0
EightQueens Compile 237 us / 249 us 372 KB / 28.32 / 26.37 / 25.39
EightQueens Execute 2.86 ms / 2.86 ms 7.72 KB / 0 / 0 / 0
FibonacciRecursive Cached Compile 71.7 ns / 72.3 ns 184 B / 0.01097 / 0 / 0
FibonacciRecursive Compile 184 us / 194 us 337 KB / 39.06 / 30.76 / 26.37
FibonacciRecursive Execute 1.92 s / 1.92 s 168 B / 0 / 0 / 0
NBody Cached Compile 60.1 ns / 61.1 ns 184 B / 0.01097 / 0 / 0
NBody Compile 239 us / 244 us 449 KB / 45.9 / 32.23 / 26.37
NBody Execute 3.67 ms / 3.75 ms 6.69 KB / 0 / 0 / 0
NumericLoops Cached Compile 77.6 ns / 78.8 ns 184 B / 0.01097 / 0 / 0
NumericLoops Compile 178 us / 186 us 339 KB / 39.06 / 30.27 / 26.37
NumericLoops Execute 2.68 ms / 2.69 ms 0 B / 0 / 0 / 0
SpectralNorm Cached Compile 94.3 ns / 95.1 ns 184 B / 0.01097 / 0 / 0
SpectralNorm Compile 483 us / 669 us 396 KB / 39.06 / 29.3 / 23.44
SpectralNorm Execute 65.9 ms / 66.1 ms 7.68 KB / 0 / 0 / 0
StringConcatChains Cached Compile 96 ns / 96.9 ns 184 B / 0.01097 / 0 / 0
StringConcatChains Compile 270 us / 297 us 332 KB / 36.13 / 28.32 / 24.41
StringConcatChains Execute 142 us / 144 us 143 KB / 8.545 / 0 / 0
StringFormat Cached Compile 94.1 ns / 94.3 ns 184 B / 0.01097 / 0 / 0
StringFormat Compile 275 us / 407 us 336 KB / 37.11 / 27.34 / 24.41
StringFormat Execute 2.73 ms / 2.75 ms 2.94 MB / 183.6 / 0 / 0
StringPatternOps Cached Compile 97.1 ns / 98.5 ns 184 B / 0.002146 / 0 / 0
StringPatternOps Compile 229 us / 247 us 348 KB / 26.37 / 25.39 / 24.41
StringPatternOps Execute 794 us / 801 us 661 KB / 7.812 / 0 / 0
TableInsertRemove Cached Compile 89.2 ns / 89.6 ns 184 B / 0.01097 / 0 / 0
TableInsertRemove Compile 221 us / 245 us 346 KB / 38.09 / 28.32 / 25.39
TableInsertRemove Execute 875 us / 877 us 36.1 KB / 1.953 / 0 / 0
TableIntFillIter Cached Compile 83.9 ns / 85.3 ns 184 B / 0.002146 / 0 / 0
TableIntFillIter Compile 196 us / 208 us 341 KB / 27.83 / 26.37 / 25.39
TableIntFillIter Execute 1.62 ms / 1.78 ms 32.7 KB / 0 / 0 / 0
TableMutation Cached Compile 73.6 ns / 74 ns 184 B / 0.01097 / 0 / 0
TableMutation Compile 189 us / 201 us 344 KB / 39.55 / 31.25 / 26.37
TableMutation Execute 117 us / 117 us 8.52 KB / 0.4883 / 0 / 0
TableNextTraversal Cached Compile 94.1 ns / 95.3 ns 184 B / 0.01097 / 0 / 0
TableNextTraversal Compile 287 us / 308 us 345 KB / 38.09 / 31.25 / 25.39
TableNextTraversal Execute 1.02 ms / 1.02 ms 497 KB / 29.3 / 5.859 / 0
TableStringKeyLookup Cached Compile 93 ns / 94.6 ns 184 B / 0.01097 / 0 / 0
TableStringKeyLookup Compile 247 us / 282 us 342 KB / 38.09 / 29.3 / 25.39
TableStringKeyLookup Execute 3.31 ms / 3.33 ms 423 KB / 23.44 / 3.906 / 0
TowerOfHanoi Cached Compile 89 ns / 89.3 ns 184 B / 0.01097 / 0 / 0
TowerOfHanoi Compile 236 us / 249 us 341 KB / 38.09 / 30.27 / 25.39
TowerOfHanoi Execute 31.5 ms / 31.6 ms 168 B / 0 / 0 / 0
TwoArgAdd ClrToLuaInterop 723 ns / 724 ns 0 B / 0 / 0 / 0
TwoArgAdd LuaToClrInterop 568 ns / 572 ns 0 B / 0 / 0 / 0

Time

Scenario Operation NovaSharp Mean / P95 MoonSharp Mean / P95 NovaSharp Delta vs MoonSharp NLua Mean / P95 NovaSharp Delta vs NLua LuaCSharp Mean / P95 NovaSharp Delta vs LuaCSharp Lua CLI wall-time Mean / P95 NovaSharp Delta vs Lua CLI wall-time
BinaryTrees Cached Compile 96.2 ns / 97.1 ns 71.7 us / 73.5 us -71.6 us (-99.87%) / -73.4 us (-99.87%) 27.5 us / 28.2 us -27.4 us (-99.65%) / -28.1 us (-99.66%) 16.8 us / 17 us -16.8 us (-99.43%) / -16.9 us (-99.43%) - -
BinaryTrees Compile 285 us / 295 us 1.19 ms / 1.42 ms -901 us (-75.95%) / -1.12 ms (-79.22%) 202 us / 203 us +83.8 us (+41.59%) / +91.9 us (+45.29%) 24.5 us / 24.7 us +261 us (+1065.52%) / +270 us (+1095.99%) - -
BinaryTrees Execute 80.5 ms / 81.4 ms 41.9 ms / 42.3 ms +38.6 ms (+92.27%) / +39.1 ms (+92.35%) 18.1 ms / 18.1 ms +62.4 ms (+344.29%) / +63.2 ms (+348.49%) 15.6 ms / 15.7 ms +64.8 ms (+415.14%) / +65.7 ms (+419.18%) 9.33 ms / 10 ms +71.1 ms / +71.3 ms
CoroutinePingPong Cached Compile 89.4 ns / 91.1 ns 73.9 us / 76.7 us -73.8 us (-99.88%) / -76.6 us (-99.88%) 31.7 us / 32.5 us -31.6 us (-99.72%) / -32.4 us (-99.72%) 19.2 us / 19.3 us -19.1 us (-99.54%) / -19.2 us (-99.53%) - -
CoroutinePingPong Compile 263 us / 280 us 1.56 ms / 1.82 ms -1.3 ms (-83.12%) / -1.54 ms (-84.65%) 207 us / 208 us +56 us (+27.06%) / +72.2 us (+34.73%) 26.6 us / 26.8 us +236 us (+890.38%) / +253 us (+945.25%) - -
CoroutinePingPong Execute 631 us / 634 us 788 us / 838 us -157 us (-19.93%) / -203 us (-24.29%) 136 us / 137 us +495 us (+363.03%) / +497 us (+362.88%) 209 us / 211 us +421 us (+201.27%) / +423 us (+200.81%) 1.26 ms / 1.29 ms -629 us / -657 us
EightQueens Cached Compile 103 ns / 104 ns 109 us / 117 us -108 us (-99.91%) / -117 us (-99.91%) 39.2 us / 39.6 us -39.1 us (-99.74%) / -39.5 us (-99.74%) 20.4 us / 20.5 us -20.3 us (-99.50%) / -20.4 us (-99.49%) - -
EightQueens Compile 237 us / 249 us 1.06 ms / 1.35 ms -821 us (-77.59%) / -1.1 ms (-81.59%) 179 us / 180 us +58.5 us (+32.74%) / +69.5 us (+38.70%) 27.5 us / 27.6 us +210 us (+763.56%) / +221 us (+802.16%) - -
EightQueens Execute 2.86 ms / 2.86 ms 1.73 ms / 1.73 ms +1.13 ms (+65.53%) / +1.13 ms (+65.20%) 238 us / 241 us +2.62 ms (+1102.31%) / +2.62 ms (+1089.80%) 341 us / 345 us +2.52 ms (+738.00%) / +2.52 ms (+730.64%) 1.05 ms / 1.14 ms +1.81 ms / +1.73 ms
FibonacciRecursive Cached Compile 71.7 ns / 72.3 ns 21.5 us / 22.5 us -21.4 us (-99.67%) / -22.4 us (-99.68%) 8.74 us / 8.95 us -8.67 us (-99.18%) / -8.88 us (-99.19%) 5.06 us / 5.07 us -4.99 us (-98.58%) / -5 us (-98.57%) - -
FibonacciRecursive Compile 184 us / 194 us 982 us / 1.27 ms -798 us (-81.24%) / -1.08 ms (-84.77%) 124 us / 124 us +60.4 us (+48.81%) / +69.3 us (+55.73%) 11.1 us / 11.4 us +173 us (+1555.66%) / +182 us (+1607.17%) - -
FibonacciRecursive Execute 1.92 s / 1.92 s 615 ms / 631 ms +1.3 s (+211.60%) / +1.29 s (+204.79%) 103 ms / 103 ms +1.81 s (+1760.39%) / +1.82 s (+1757.48%) 203 ms / 206 ms +1.71 s (+845.70%) / +1.72 s (+831.77%) 45.3 ms / 46.6 ms +1.87 s / +1.88 s
NBody Cached Compile 60.1 ns / 61.1 ns 203 us / 223 us -202 us (-99.97%) / -223 us (-99.97%) 64.7 us / 66.6 us -64.6 us (-99.91%) / -66.6 us (-99.91%) 52.1 us / 53.3 us -52 us (-99.88%) / -53.2 us (-99.89%) - -
NBody Compile 239 us / 244 us 984 us / 1.18 ms -745 us (-75.72%) / -939 us (-79.37%) 155 us / 159 us +84.3 us (+54.46%) / +85.1 us (+53.52%) 57.1 us / 58.5 us +182 us (+318.21%) / +186 us (+317.52%) - -
NBody Execute 3.67 ms / 3.75 ms 2.24 ms / 2.3 ms +1.43 ms (+63.70%) / +1.45 ms (+63.28%) 340 us / 348 us +3.33 ms (+978.95%) / +3.4 ms (+978.37%) 565 us / 572 us +3.11 ms (+549.78%) / +3.18 ms (+555.50%) 1.07 ms / 1.22 ms +2.6 ms / +2.53 ms
NumericLoops Cached Compile 77.6 ns / 78.8 ns 27.7 us / 29.2 us -27.6 us (-99.72%) / -29.1 us (-99.73%) 13 us / 13.3 us -13 us (-99.40%) / -13.2 us (-99.41%) 7.37 us / 7.38 us -7.29 us (-98.95%) / -7.3 us (-98.93%) - -
NumericLoops Compile 178 us / 186 us 964 us / 1.13 ms -785 us (-81.49%) / -942 us (-83.53%) 129 us / 130 us +49.4 us (+38.27%) / +55.9 us (+43.00%) 13.4 us / 13.8 us +165 us (+1228.55%) / +172 us (+1244.25%) - -
NumericLoops Execute 2.68 ms / 2.69 ms 1.28 ms / 1.29 ms +1.4 ms (+109.64%) / +1.39 ms (+107.67%) 403 us / 405 us +2.28 ms (+564.81%) / +2.28 ms (+562.50%) 455 us / 459 us +2.22 ms (+488.57%) / +2.23 ms (+484.44%) 1.14 ms / 1.17 ms +1.54 ms / +1.51 ms
SpectralNorm Cached Compile 94.3 ns / 95.1 ns 165 us / 172 us -164 us (-99.94%) / -171 us (-99.94%) 59.7 us / 60.3 us -59.6 us (-99.84%) / -60.2 us (-99.84%) 44.5 us / 45.1 us -44.4 us (-99.79%) / -45 us (-99.79%) - -
SpectralNorm Compile 483 us / 669 us 1.72 ms / 2.17 ms -1.24 ms (-71.94%) / -1.5 ms (-69.22%) 236 us / 238 us +247 us (+104.40%) / +431 us (+181.47%) 51.9 us / 52.3 us +431 us (+830.83%) / +617 us (+1178.76%) - -
SpectralNorm Execute 65.9 ms / 66.1 ms 32.9 ms / 33.1 ms +33 ms (+100.03%) / +32.9 ms (+99.31%) 6.75 ms / 6.77 ms +59.1 ms (+875.66%) / +59.3 ms (+876.04%) 6.76 ms / 6.82 ms +59.1 ms (+874.47%) / +59.3 ms (+869.33%) 3.44 ms / 3.48 ms +62.4 ms / +62.6 ms
StringConcatChains Cached Compile 96 ns / 96.9 ns 24.7 us / 26.1 us -24.6 us (-99.61%) / -26 us (-99.63%) 11.1 us / 11.5 us -11 us (-99.14%) / -11.4 us (-99.16%) 5.3 us / 5.31 us -5.2 us (-98.19%) / -5.21 us (-98.17%) - -
StringConcatChains Compile 270 us / 297 us 1.08 ms / 1.19 ms -806 us (-74.90%) / -894 us (-75.10%) 180 us / 182 us +89.6 us (+49.66%) / +115 us (+63.12%) 12.7 us / 12.9 us +257 us (+2035.36%) / +284 us (+2203.37%) - -
StringConcatChains Execute 142 us / 144 us 102 us / 105 us +40 us (+39.13%) / +39.1 us (+37.43%) 71.2 us / 72.2 us +71 us (+99.71%) / +71.5 us (+99.03%) 79.9 us / 80.7 us +62.3 us (+77.92%) / +63 us (+78.02%) 1.3 ms / 1.35 ms -1.16 ms / -1.2 ms
StringFormat Cached Compile 94.1 ns / 94.3 ns 29.5 us / 31.2 us -29.4 us (-99.68%) / -31.1 us (-99.70%) 12.7 us / 12.8 us -12.6 us (-99.26%) / -12.7 us (-99.26%) 7.21 us / 7.24 us -7.12 us (-98.70%) / -7.14 us (-98.70%) - -
StringFormat Compile 275 us / 407 us 1.2 ms / 1.42 ms -925 us (-77.06%) / -1.01 ms (-71.25%) 162 us / 163 us +113 us (+69.58%) / +244 us (+149.36%) 14.6 us / 14.8 us +261 us (+1783.97%) / +392 us (+2652.53%) - -
StringFormat Execute 2.73 ms / 2.75 ms 2.62 ms / 2.64 ms +116 us (+4.42%) / +110 us (+4.16%) 410 us / 411 us +2.32 ms (+565.81%) / +2.34 ms (+568.59%) 325 us / 326 us +2.41 ms (+739.71%) / +2.42 ms (+742.37%) 1.57 ms / 1.63 ms +1.16 ms / +1.12 ms
StringPatternOps Cached Compile 97.1 ns / 98.5 ns 52.1 us / 54.3 us -52 us (-99.81%) / -54.2 us (-99.82%) 23.6 us / 24.1 us -23.5 us (-99.59%) / -24 us (-99.59%) 12.6 us / 12.9 us -12.5 us (-99.23%) / -12.8 us (-99.24%) - -
StringPatternOps Compile 229 us / 247 us 1.04 ms / 1.35 ms -807 us (-77.93%) / -1.11 ms (-81.77%) 185 us / 188 us +43.8 us (+23.71%) / +58.8 us (+31.28%) 19.6 us / 19.7 us +209 us (+1063.95%) / +227 us (+1152.22%) - -
StringPatternOps Execute 794 us / 801 us 1.71 ms / 1.73 ms -912 us (-53.45%) / -926 us (-53.63%) 418 us / 424 us +377 us (+90.16%) / +377 us (+88.85%) 983 us / 1.01 ms -189 us (-19.20%) / -205 us (-20.42%) 1.16 ms / 1.2 ms -370 us / -401 us
TableInsertRemove Cached Compile 89.2 ns / 89.6 ns 45.8 us / 47.9 us -45.7 us (-99.81%) / -47.8 us (-99.81%) 20.9 us / 21.5 us -20.8 us (-99.57%) / -21.4 us (-99.58%) 13.5 us / 13.6 us -13.5 us (-99.34%) / -13.5 us (-99.34%) - -
TableInsertRemove Compile 221 us / 245 us 1.58 ms / 2.02 ms -1.36 ms (-85.97%) / -1.78 ms (-87.91%) 190 us / 192 us +31.1 us (+16.38%) / +52.8 us (+27.53%) 20.3 us / 20.5 us +201 us (+989.59%) / +224 us (+1094.76%) - -
TableInsertRemove Execute 875 us / 877 us 1.22 ms / 1.25 ms -341 us (-28.04%) / -372 us (-29.76%) 671 us / 672 us +204 us (+30.38%) / +205 us (+30.41%) 148 us / 149 us +728 us (+492.67%) / +727 us (+486.79%) 1.37 ms / 1.39 ms -490 us / -515 us
TableIntFillIter Cached Compile 83.9 ns / 85.3 ns 30 us / 31.3 us -30 us (-99.72%) / -31.2 us (-99.73%) 12.5 us / 12.7 us -12.4 us (-99.33%) / -12.6 us (-99.33%) 5.2 us / 5.21 us -5.12 us (-98.39%) / -5.13 us (-98.36%) - -
TableIntFillIter Compile 196 us / 208 us 991 us / 1.27 ms -795 us (-80.19%) / -1.06 ms (-83.57%) 142 us / 157 us +54 us (+37.97%) / +51.6 us (+32.87%) 11.5 us / 12.7 us +185 us (+1606.16%) / +196 us (+1543.72%) - -
TableIntFillIter Execute 1.62 ms / 1.78 ms 823 us / 826 us +797 us (+96.81%) / +957 us (+115.81%) 80.1 us / 80.5 us +1.54 ms (+1922.50%) / +1.7 ms (+2116.78%) 102 us / 112 us +1.52 ms (+1481.20%) / +1.67 ms (+1489.47%) 904 us / 941 us +716 us / +843 us
TableMutation Cached Compile 73.6 ns / 74 ns 35.4 us / 39.2 us -35.4 us (-99.79%) / -39.1 us (-99.81%) 14.4 us / 14.7 us -14.3 us (-99.49%) / -14.6 us (-99.50%) 8.85 us / 8.86 us -8.77 us (-99.17%) / -8.79 us (-99.16%) - -
TableMutation Compile 189 us / 201 us 936 us / 1.15 ms -747 us (-79.82%) / -950 us (-82.53%) 129 us / 130 us +59.5 us (+45.97%) / +71.2 us (+54.84%) 15 us / 15.2 us +174 us (+1158.82%) / +186 us (+1223.14%) - -
TableMutation Execute 117 us / 117 us 63.1 us / 63.6 us +53.7 us (+85.13%) / +53.4 us (+83.95%) 10.6 us / 10.6 us +106 us (+1005.31%) / +106 us (+1003.89%) 11.4 us / 11.4 us +105 us (+926.57%) / +105 us (+923.25%) 985 us / 996 us -869 us / -879 us
TableNextTraversal Cached Compile 94.1 ns / 95.3 ns 48 us / 51.3 us -47.9 us (-99.80%) / -51.2 us (-99.81%) 19.2 us / 19.6 us -19.1 us (-99.51%) / -19.5 us (-99.51%) 12.8 us / 12.9 us -12.7 us (-99.26%) / -12.8 us (-99.26%) - -
TableNextTraversal Compile 287 us / 308 us 1.13 ms / 1.3 ms -844 us (-74.64%) / -990 us (-76.26%) 192 us / 194 us +95 us (+49.60%) / +114 us (+58.82%) 20.5 us / 20.7 us +266 us (+1296.58%) / +287 us (+1387.65%) - -
TableNextTraversal Execute 1.02 ms / 1.02 ms 596 us / 603 us +424 us (+71.11%) / +422 us (+69.94%) 339 us / 339 us +682 us (+201.35%) / +686 us (+202.17%) 270 us / 271 us +750 us (+277.64%) / +754 us (+278.74%) 1.45 ms / 1.51 ms -431 us / -489 us
TableStringKeyLookup Cached Compile 93 ns / 94.6 ns 39.8 us / 42.2 us -39.7 us (-99.77%) / -42.1 us (-99.78%) 15.4 us / 15.8 us -15.3 us (-99.40%) / -15.7 us (-99.40%) 8.93 us / 8.95 us -8.83 us (-98.96%) / -8.86 us (-98.94%) - -
TableStringKeyLookup Compile 247 us / 282 us 1.08 ms / 1.2 ms -831 us (-77.10%) / -922 us (-76.59%) 189 us / 190 us +57.9 us (+30.67%) / +91.8 us (+48.28%) 16 us / 16.2 us +231 us (+1443.54%) / +266 us (+1635.76%) - -
TableStringKeyLookup Execute 3.31 ms / 3.33 ms 2.41 ms / 2.47 ms +899 us (+37.29%) / +853 us (+34.49%) 1.51 ms / 1.52 ms +1.8 ms (+119.08%) / +1.81 ms (+119.41%) 1.62 ms / 1.63 ms +1.69 ms (+103.88%) / +1.7 ms (+103.98%) 2.17 ms / 2.49 ms +1.14 ms / +832 us
TowerOfHanoi Cached Compile 89 ns / 89.3 ns 37.5 us / 38.8 us -37.4 us (-99.76%) / -38.7 us (-99.77%) 16.3 us / 16.4 us -16.2 us (-99.45%) / -16.3 us (-99.46%) 9.93 us / 10 us -9.84 us (-99.10%) / -9.94 us (-99.11%) - -
TowerOfHanoi Compile 236 us / 249 us 1.15 ms / 1.56 ms -918 us (-79.56%) / -1.31 ms (-84.03%) 190 us / 191 us +45.8 us (+24.11%) / +57.9 us (+30.32%) 16.3 us / 16.4 us +220 us (+1344.80%) / +232 us (+1416.03%) - -
TowerOfHanoi Execute 31.5 ms / 31.6 ms 15.4 ms / 15.6 ms +16.1 ms (+104.25%) / +16 ms (+102.34%) 3.17 ms / 3.18 ms +28.4 ms (+893.41%) / +28.4 ms (+892.14%) 4.28 ms / 4.4 ms +27.2 ms (+635.96%) / +27.2 ms (+618.54%) 2.15 ms / 2.65 ms +29.4 ms / +28.9 ms
TwoArgAdd ClrToLuaInterop 723 ns / 724 ns 280 ns / 282 ns +443 ns (+158.33%) / +442 ns (+156.47%) 293 ns / 295 ns +430 ns (+146.70%) / +429 ns (+145.40%) 136 ns / 138 ns +587 ns (+430.73%) / +586 ns (+425.61%) - -
TwoArgAdd LuaToClrInterop 568 ns / 572 ns 293 ns / 296 ns +275 ns (+93.86%) / +276 ns (+93.15%) 894 ns / 896 ns -325 ns (-36.40%) / -324 ns (-36.19%) 83.1 ns / 83.9 ns +485 ns (+583.89%) / +488 ns (+581.15%) - -

Memory and GC

GC columns are collections per 1,000 operations.
A - cell means that runtime did not report memory or GC diagnostics for that row.

Scenario Operation NovaSharp Alloc / GC0/1/2 MoonSharp Alloc / GC0/1/2 NovaSharp Delta vs MoonSharp NLua Alloc / GC0/1/2 NovaSharp Delta vs NLua LuaCSharp Alloc / GC0/1/2 NovaSharp Delta vs LuaCSharp Lua CLI wall-time Alloc / GC0/1/2 NovaSharp Delta vs Lua CLI wall-time
BinaryTrees Cached Compile 184 B / 0.01097 / 0 / 0 43.9 KB / 2.686 / 1.343 / 0 -43.8 KB (-99.59%) / -2.675 / -1.343 / 0 816 B / 0.03052 / 0 / 0 -632 B (-77.45%) / -0.01955 / 0 / 0 3 KB / 0.1831 / 0 / 0 -2.82 KB (-94.01%) / -0.1721 / 0 / 0 - -
BinaryTrees Compile 353 KB / 39.06 / 30.27 / 25.39 2.37 MB / 216.8 / 207 / 201.2 -2.03 MB (-85.45%) / -177.7 / -176.8 / -175.8 7.39 KB / 0.2441 / 0 / 0 +346 KB (+4679.10%) / +38.82 / +30.27 / +25.39 24.9 KB / 1.495 / 0.09155 / 0 +328 KB (+1319.55%) / +37.57 / +30.18 / +25.39 - -
BinaryTrees Execute 9.6 MB / 571.4 / 142.9 / 0 74 MB / 4615 / 1846 / 0 -64.4 MB (-87.02%) / -4044 / -1703 / 0 144 B / 0 / 0 / 0 +9.6 MB (+6992555.56%) / +571.4 / +142.9 / 0 9.73 MB / 593.8 / 156.2 / 0 -131 KB (-1.32%) / -22.32 / -13.39 / 0 - / - / - / - - / - / - / -
CoroutinePingPong Cached Compile 184 B / 0.01097 / 0 / 0 46.8 KB / 2.808 / 1.343 / 0 -46.7 KB (-99.62%) / -2.797 / -1.343 / 0 848 B / 0 / 0 / 0 -664 B (-78.30%) / +0.01097 / 0 / 0 3.7 KB / 0.2136 / 0 / 0 -3.52 KB (-95.14%) / -0.2027 / 0 / 0 - -
CoroutinePingPong Compile 356 KB / 38.09 / 30.27 / 24.41 2.37 MB / 210.9 / 199.2 / 195.3 -2.03 MB (-85.37%) / -172.9 / -168.9 / -170.9 7.43 KB / 0.2441 / 0 / 0 +348 KB (+4684.73%) / +37.84 / +30.27 / +24.41 25.6 KB / 1.556 / 0.09155 / 0 +330 KB (+1289.47%) / +36.53 / +30.18 / +24.41 - -
CoroutinePingPong Execute 80.5 KB / 4.883 / 0 / 0 2.51 MB / 180.7 / 150.4 / 149.4 -2.43 MB (-96.87%) / -175.8 / -150.4 / -149.4 24 B / 0 / 0 / 0 +80.5 KB (+343466.67%) / +4.883 / 0 / 0 8.48 KB / 0.4883 / 0 / 0 +72 KB (+849.95%) / +4.395 / 0 / 0 - / - / - / - - / - / - / -
EightQueens Cached Compile 184 B / 0.002146 / 0 / 0 69.2 KB / 0.7324 / 0.6104 / 0 -69 KB (-99.74%) / -0.7303 / -0.6104 / 0 1.09 KB / 0 / 0 / 0 -936 B (-83.57%) / +0.002146 / 0 / 0 3.12 KB / 0.03052 / 0 / 0 -2.95 KB (-94.25%) / -0.02837 / 0 / 0 - -
EightQueens Compile 372 KB / 28.32 / 26.37 / 25.39 2.4 MB / 193.4 / 191.4 / 191.4 -2.03 MB (-84.84%) / -165 / -165 / -166 7.69 KB / 0 / 0 / 0 +364 KB (+4741.07%) / +28.32 / +26.37 / +25.39 25 KB / 0.3052 / 0 / 0 +347 KB (+1388.16%) / +28.02 / +26.37 / +25.39 - -
EightQueens Execute 7.72 KB / 0 / 0 / 0 3.33 MB / 41.02 / 1.953 / 0 -3.33 MB (-99.77%) / -41.02 / -1.953 / 0 24 B / 0 / 0 / 0 +7.7 KB (+32833.33%) / 0 / 0 / 0 3.24 KB / 0 / 0 / 0 +4.48 KB (+138.07%) / 0 / 0 / 0 - / - / - / - - / - / - / -
FibonacciRecursive Cached Compile 184 B / 0.01097 / 0 / 0 17.9 KB / 1.068 / 0.5188 / 0 -17.7 KB (-99.00%) / -1.057 / -0.5188 / 0 416 B / 0.01526 / 0 / 0 -232 B (-55.77%) / -0.004292 / 0 / 0 1.55 KB / 0.09155 / 0 / 0 -1.38 KB (-88.44%) / -0.08059 / 0 / 0 - -
FibonacciRecursive Compile 337 KB / 39.06 / 30.76 / 26.37 2.34 MB / 203.1 / 193.4 / 189.5 -2.01 MB (-85.95%) / -164.1 / -162.6 / -163.1 7.02 KB / 0.2441 / 0 / 0 +330 KB (+4707.86%) / +38.82 / +30.76 / +26.37 23.5 KB / 1.434 / 0.09155 / 0 +314 KB (+1338.28%) / +37.63 / +30.67 / +26.37 - -
FibonacciRecursive Execute 168 B / 0 / 0 / 0 1.62 GB / 1.04e+05 / 1000 / 0 -1.62 GB (-100.00%) / -1.04e+05 / -1000 / 0 144 B / 0 / 0 / 0 +24 B (+16.67%) / 0 / 0 / 0 200 B / 0 / 0 / 0 -32 B (-16.00%) / 0 / 0 / 0 - / - / - / - - / - / - / -
NBody Cached Compile 184 B / 0.01097 / 0 / 0 192 KB / 11.72 / 5.859 / 0 -191 KB (-99.91%) / -11.71 / -5.859 / 0 3.02 KB / 0.1221 / 0 / 0 -2.84 KB (-94.04%) / -0.1111 / 0 / 0 14.9 KB / 0.8545 / 0 / 0 -14.7 KB (-98.79%) / -0.8435 / 0 / 0 - -
NBody Compile 449 KB / 45.9 / 32.23 / 26.37 2.53 MB / 209 / 195.3 / 183.6 -2.09 MB (-82.63%) / -163.1 / -163.1 / -157.2 9.59 KB / 0.4883 / 0.2441 / 0 +440 KB (+4582.59%) / +45.41 / +31.98 / +26.37 36.7 KB / 2.197 / 0.1831 / 0 +413 KB (+1123.22%) / +43.7 / +32.04 / +26.37 - -
NBody Execute 6.69 KB / 0 / 0 / 0 6.24 MB / 390.6 / 15.62 / 0 -6.24 MB (-99.90%) / -390.6 / -15.62 / 0 144 B / 0 / 0 / 0 +6.55 KB (+4655.56%) / 0 / 0 / 0 3.62 KB / 0 / 0 / 0 +3.07 KB (+84.88%) / 0 / 0 / 0 - / - / - / - - / - / - / -
NumericLoops Cached Compile 184 B / 0.01097 / 0 / 0 21.9 KB / 1.312 / 0.6409 / 0 -21.7 KB (-99.18%) / -1.301 / -0.6409 / 0 464 B / 0.01526 / 0 / 0 -280 B (-60.34%) / -0.004292 / 0 / 0 2.77 KB / 0.1678 / 0 / 0 -2.59 KB (-93.50%) / -0.1569 / 0 / 0 - -
NumericLoops Compile 339 KB / 39.06 / 30.27 / 26.37 2.35 MB / 197.3 / 189.5 / 183.6 -2.02 MB (-85.88%) / -158.2 / -159.2 / -157.2 7.05 KB / 0.2441 / 0 / 0 +332 KB (+4715.62%) / +38.82 / +30.27 / +26.37 24.7 KB / 1.495 / 0.09155 / 0 +315 KB (+1276.84%) / +37.57 / +30.18 / +26.37 - -
NumericLoops Execute 0 B / 0 / 0 / 0 2.59 MB / 162.1 / 0 / 0 -2.59 MB (-100.00%) / -162.1 / 0 / 0 144 B / 0 / 0 / 0 -144 B (-100.00%) / 0 / 0 / 0 0 B / 0 / 0 / 0 0 B (+0.00%) / 0 / 0 / 0 - / - / - / - - / - / - / -
SpectralNorm Cached Compile 184 B / 0.01097 / 0 / 0 170 KB / 6.348 / 3.174 / 0 -170 KB (-99.89%) / -6.337 / -3.174 / 0 1.54 KB / 0.06104 / 0 / 0 -1.36 KB (-88.32%) / -0.05007 / 0 / 0 4.54 KB / 0.2441 / 0 / 0 -4.36 KB (-96.04%) / -0.2332 / 0 / 0 - -
SpectralNorm Compile 396 KB / 39.06 / 29.3 / 23.44 2.44 MB / 226.6 / 214.8 / 207 -2.05 MB (-84.14%) / -187.5 / -185.5 / -183.6 8.13 KB / 0.4883 / 0 / 0 +388 KB (+4764.86%) / +38.57 / +29.3 / +23.44 26.4 KB / 1.587 / 0.06104 / 0 +369 KB (+1397.50%) / +37.48 / +29.24 / +23.44 - -
SpectralNorm Execute 7.68 KB / 0 / 0 / 0 61.9 MB / 3875 / 187.5 / 0 -61.9 MB (-99.99%) / -3875 / -187.5 / 0 144 B / 0 / 0 / 0 +7.54 KB (+5361.11%) / 0 / 0 / 0 4.88 KB / 0 / 0 / 0 +2.8 KB (+57.53%) / 0 / 0 / 0 - / - / - / - - / - / - / -
StringConcatChains Cached Compile 184 B / 0.01097 / 0 / 0 13.6 KB / 0.824 / 0.3967 / 0 -13.4 KB (-98.68%) / -0.813 / -0.3967 / 0 368 B / 0.01526 / 0 / 0 -184 B (-50.00%) / -0.004292 / 0 / 0 1.7 KB / 0.09918 / 0 / 0 -1.52 KB (-89.40%) / -0.08821 / 0 / 0 - -
StringConcatChains Compile 332 KB / 36.13 / 28.32 / 24.41 2.34 MB / 218.8 / 210.9 / 205.1 -2.02 MB (-86.14%) / -182.6 / -182.6 / -180.7 6.97 KB / 0.2441 / 0 / 0 +325 KB (+4667.54%) / +35.89 / +28.32 / +24.41 23.6 KB / 1.434 / 0.09155 / 0 +309 KB (+1308.24%) / +34.7 / +28.23 / +24.41 - -
StringConcatChains Execute 143 KB / 8.545 / 0 / 0 222 KB / 13.55 / 0.1221 / 0 -78.7 KB (-35.51%) / -5.005 / -0.1221 / 0 144 B / 0 / 0 / 0 +143 KB (+101588.89%) / +8.545 / 0 / 0 141 KB / 8.545 / 0 / 0 +2 KB (+1.42%) / 0 / 0 / 0 - / - / - / - - / - / - / -
StringFormat Cached Compile 184 B / 0.01097 / 0 / 0 17.1 KB / 1.038 / 0.5188 / 0 -16.9 KB (-98.95%) / -1.027 / -0.5188 / 0 432 B / 0.01526 / 0 / 0 -248 B (-57.41%) / -0.004292 / 0 / 0 2.76 KB / 0.1678 / 0 / 0 -2.58 KB (-93.48%) / -0.1569 / 0 / 0 - -
StringFormat Compile 336 KB / 37.11 / 27.34 / 24.41 2.34 MB / 214.8 / 205.1 / 201.2 -2.02 MB (-85.99%) / -177.7 / -177.7 / -176.8 7.02 KB / 0.2441 / 0 / 0 +329 KB (+4691.80%) / +36.87 / +27.34 / +24.41 24.6 KB / 1.495 / 0.09155 / 0 +312 KB (+1264.39%) / +35.61 / +27.25 / +24.41 - -
StringFormat Execute 2.94 MB / 183.6 / 0 / 0 5.9 MB / 367.2 / 3.906 / 0 -2.96 MB (-50.16%) / -183.6 / -3.906 / 0 144 B / 0 / 0 / 0 +2.94 MB (+2140161.11%) / +183.6 / 0 / 0 152 KB / 9.277 / 0 / 0 +2.79 MB (+1878.87%) / +174.3 / 0 / 0 - / - / - / - - / - / - / -
StringPatternOps Cached Compile 184 B / 0.002146 / 0 / 0 36.2 KB / 0.4272 / 0.3662 / 0 -36 KB (-99.50%) / -0.4251 / -0.3662 / 0 672 B / 0 / 0 / 0 -488 B (-72.62%) / +0.002146 / 0 / 0 3.56 KB / 0.03052 / 0 / 0 -3.38 KB (-94.96%) / -0.02837 / 0 / 0 - -
StringPatternOps Compile 348 KB / 26.37 / 25.39 / 24.41 2.36 MB / 185.5 / 183.6 / 183.6 -2.02 MB (-85.62%) / -159.2 / -158.2 / -159.2 7.27 KB / 0 / 0 / 0 +340 KB (+4683.60%) / +26.37 / +25.39 / +24.41 25.5 KB / 0.3052 / 0 / 0 +322 KB (+1265.07%) / +26.06 / +25.39 / +24.41 - -
StringPatternOps Execute 661 KB / 7.812 / 0 / 0 5.07 MB / 62.5 / 0 / 0 -4.42 MB (-87.26%) / -54.69 / 0 / 0 144 B / 0 / 0 / 0 +661 KB (+470255.56%) / +7.812 / 0 / 0 446 KB / 3.906 / 0 / 0 +216 KB (+48.35%) / +3.906 / 0 / 0 - / - / - / - - / - / - / -
TableInsertRemove Cached Compile 184 B / 0.01097 / 0 / 0 32.5 KB / 1.953 / 0.9766 / 0 -32.3 KB (-99.45%) / -1.942 / -0.9766 / 0 632 B / 0.03052 / 0 / 0 -448 B (-70.89%) / -0.01955 / 0 / 0 3.05 KB / 0.1831 / 0 / 0 -2.87 KB (-94.10%) / -0.1721 / 0 / 0 - -
TableInsertRemove Compile 346 KB / 38.09 / 28.32 / 25.39 2.36 MB / 210.9 / 199.2 / 199.2 -2.02 MB (-85.70%) / -172.9 / -170.9 / -173.8 7.24 KB / 0.2441 / 0 / 0 +338 KB (+4675.98%) / +37.84 / +28.32 / +25.39 25 KB / 1.526 / 0.09155 / 0 +321 KB (+1284.72%) / +36.56 / +28.23 / +25.39 - -
TableInsertRemove Execute 36.1 KB / 1.953 / 0 / 0 1.11 MB / 68.36 / 7.812 / 0 -1.07 MB (-96.82%) / -66.41 / -7.812 / 0 144 B / 0 / 0 / 0 +36 KB (+25572.22%) / +1.953 / 0 / 0 12 KB / 0.7324 / 0 / 0 +24.1 KB (+199.68%) / +1.221 / 0 / 0 - / - / - / - - / - / - / -
TableIntFillIter Cached Compile 184 B / 0.002146 / 0 / 0 40.4 KB / 0.2441 / 0.1831 / 0 -40.2 KB (-99.56%) / -0.242 / -0.1831 / 0 504 B / 0 / 0 / 0 -320 B (-63.49%) / +0.002146 / 0 / 0 1.96 KB / 0.02289 / 0 / 0 -1.78 KB (-90.84%) / -0.02074 / 0 / 0 - -
TableIntFillIter Compile 341 KB / 27.83 / 26.37 / 25.39 2.35 MB / 185.5 / 183.6 / 183.6 -2.02 MB (-85.83%) / -157.7 / -157.2 / -158.2 7.11 KB / 0 / 0 / 0 +334 KB (+4695.76%) / +27.83 / +26.37 / +25.39 23.9 KB / 0.2899 / 0.01526 / 0 +317 KB (+1328.52%) / +27.54 / +26.35 / +25.39 - -
TableIntFillIter Execute 32.7 KB / 0 / 0 / 0 1.9 MB / 23.44 / 6.836 / 0 -1.87 MB (-98.32%) / -23.44 / -6.836 / 0 144 B / 0 / 0 / 0 +32.6 KB (+23161.11%) / 0 / 0 / 0 24.1 KB / 0.2441 / 0 / 0 +8.64 KB (+35.90%) / -0.2441 / 0 / 0 - / - / - / - - / - / - / -
TableMutation Cached Compile 184 B / 0.01097 / 0 / 0 29.4 KB / 1.77 / 0.8545 / 0 -29.2 KB (-99.39%) / -1.759 / -0.8545 / 0 568 B / 0.03052 / 0.01526 / 0 -384 B (-67.61%) / -0.01955 / -0.01526 / 0 2.05 KB / 0.1221 / 0 / 0 -1.87 KB (-91.22%) / -0.1111 / 0 / 0 - -
TableMutation Compile 344 KB / 39.55 / 31.25 / 26.37 2.35 MB / 197.3 / 185.5 / 183.6 -2.02 MB (-85.74%) / -157.7 / -154.3 / -157.2 7.15 KB / 0.2441 / 0 / 0 +337 KB (+4711.46%) / +39.31 / +31.25 / +26.37 23.9 KB / 1.465 / 0.09155 / 0 +320 KB (+1337.39%) / +38.09 / +31.16 / +26.37 - -
TableMutation Execute 8.52 KB / 0.4883 / 0 / 0 129 KB / 7.812 / 0.7324 / 0 -120 KB (-93.37%) / -7.324 / -0.7324 / 0 144 B / 0 / 0 / 0 +8.38 KB (+5961.11%) / +0.4883 / 0 / 0 6.02 KB / 0.3662 / 0 / 0 +2.5 KB (+41.50%) / +0.1221 / 0 / 0 - / - / - / - - / - / - / -
TableNextTraversal Cached Compile 184 B / 0.01097 / 0 / 0 30.8 KB / 1.831 / 0.9155 / 0 -30.6 KB (-99.42%) / -1.82 / -0.9155 / 0 648 B / 0.03052 / 0 / 0 -464 B (-71.60%) / -0.01955 / 0 / 0 2.21 KB / 0.1221 / 0 / 0 -2.03 KB (-91.87%) / -0.1111 / 0 / 0 - -
TableNextTraversal Compile 345 KB / 38.09 / 31.25 / 25.39 2.36 MB / 212.9 / 205.1 / 199.2 -2.02 MB (-85.71%) / -174.8 / -173.8 / -173.8 7.24 KB / 0.2441 / 0 / 0 +338 KB (+4661.22%) / +37.84 / +31.25 / +25.39 24.1 KB / 1.465 / 0.09155 / 0 +321 KB (+1330.30%) / +36.62 / +31.16 / +25.39 - -
TableNextTraversal Execute 497 KB / 29.3 / 5.859 / 0 864 KB / 52.73 / 15.62 / 0 -367 KB (-42.45%) / -23.44 / -9.766 / 0 144 B / 0 / 0 / 0 +497 KB (+353555.56%) / +29.3 / +5.859 / 0 111 KB / 6.348 / 0.9766 / 0 +387 KB (+348.90%) / +22.95 / +4.883 / 0 - / - / - / - - / - / - / -
TableStringKeyLookup Cached Compile 184 B / 0.01097 / 0 / 0 41.3 KB / 1.526 / 0.7324 / 0 -41.1 KB (-99.56%) / -1.515 / -0.7324 / 0 528 B / 0.03052 / 0 / 0 -344 B (-65.15%) / -0.01955 / 0 / 0 2.03 KB / 0.1221 / 0 / 0 -1.85 KB (-91.15%) / -0.1111 / 0 / 0 - -
TableStringKeyLookup Compile 342 KB / 38.09 / 29.3 / 25.39 2.35 MB / 212.9 / 203.1 / 199.2 -2.02 MB (-85.82%) / -174.8 / -173.8 / -173.8 7.13 KB / 0.2441 / 0 / 0 +334 KB (+4692.82%) / +37.84 / +29.3 / +25.39 23.9 KB / 1.465 / 0.09155 / 0 +318 KB (+1327.13%) / +36.62 / +29.21 / +25.39 - -
TableStringKeyLookup Execute 423 KB / 23.44 / 3.906 / 0 2.36 MB / 144.5 / 35.16 / 0 -1.95 MB (-82.51%) / -121.1 / -31.25 / 0 144 B / 0 / 0 / 0 +423 KB (+300500.00%) / +23.44 / +3.906 / 0 527 KB / 31.25 / 3.906 / 0 -104 KB (-19.79%) / -7.812 / 0 / 0 - / - / - / - - / - / - / -
TowerOfHanoi Cached Compile 184 B / 0.01097 / 0 / 0 25.6 KB / 1.526 / 0.7324 / 0 -25.4 KB (-99.30%) / -1.515 / -0.7324 / 0 496 B / 0 / 0 / 0 -312 B (-62.90%) / +0.01097 / 0 / 0 2.34 KB / 0.1373 / 0 / 0 -2.16 KB (-92.33%) / -0.1264 / 0 / 0 - -
TowerOfHanoi Compile 341 KB / 38.09 / 30.27 / 25.39 2.35 MB / 207 / 199.2 / 193.4 -2.02 MB (-85.83%) / -168.9 / -168.9 / -168 7.08 KB / 0.2441 / 0 / 0 +334 KB (+4721.84%) / +37.84 / +30.27 / +25.39 24.2 KB / 1.465 / 0.09155 / 0 +317 KB (+1308.85%) / +36.62 / +30.18 / +25.39 - -
TowerOfHanoi Execute 168 B / 0 / 0 / 0 33.9 MB / 2109 / 15.62 / 0 -33.9 MB (-100.00%) / -2109 / -15.62 / 0 24 B / 0 / 0 / 0 +144 B (+600.00%) / 0 / 0 / 0 144 B / 0 / 0 / 0 +24 B (+16.67%) / 0 / 0 / 0 - / - / - / - - / - / - / -
TwoArgAdd ClrToLuaInterop 0 B / 0 / 0 / 0 640 B / 0.038 / 0 / 0 -640 B (-100.00%) / -0.038 / 0 / 0 144 B / 0.0085 / 0 / 0 -144 B (-100.00%) / -0.0085 / 0 / 0 0 B / 0 / 0 / 0 0 B (+0.00%) / 0 / 0 / 0 - -
TwoArgAdd LuaToClrInterop 0 B / 0 / 0 / 0 552 B / 0.0065 / 0 / 0 -552 B (-100.00%) / -0.0065 / 0 / 0 504 B / 0.006 / 0 / 0 -504 B (-100.00%) / -0.006 / 0 / 0 0 B / 0 / 0 / 0 0 B (+0.00%) / 0 / 0 / 0 - -

Self Baseline Comparisons

No checked-in self baseline artifacts were found at docs/performance-history/current-baseline. Add BenchmarkDotNet JSON artifacts there or pass --self-baseline-root to enable NovaSharp-vs-NovaSharp deltas.

Changed beyond tolerance: yes. Self-regression signal: no.
External runtime cells: 166. Missing expected external cells: 0. Missing lua CLI rows: 0. Self-baseline rows: 0.
Phase A0 baseline rows: 50. Phase A0 gate failures: 0.

Generated by benchmark CI (run logs).

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage

Metric Coverage
Line 84.70% (33511/39527)
Branch 80.10% (13608/16981)
Method 88.40% (4794/5422)

Generated by coverage.ps1

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Lua Comparison Report

Input artifacts: artifacts/lua-comparison-download

OS Lua Match Mismatch Lua only Nova only Both error Missing Skipped Ratchet new Ratchet changed Ratchet missing Match rate Runtime
macos-latest 5.1 970 0 0 0 238 0 1184 0 0 0 80.3% 59 s
ubuntu-latest 5.1 970 0 0 0 238 0 1184 0 0 0 80.3% 33 s
windows-latest 5.1 970 0 0 0 238 0 1184 0 0 0 80.3% 88 s
macos-latest 5.2 745 0 0 0 180 0 1467 0 0 0 80.5% 63 s
ubuntu-latest 5.2 745 0 0 0 180 0 1467 0 0 0 80.5% 39 s
windows-latest 5.2 745 0 0 0 180 0 1467 0 0 0 80.5% 76 s
macos-latest 5.3 923 0 0 0 294 0 1175 0 0 0 75.8% 57 s
ubuntu-latest 5.3 923 0 0 0 294 0 1175 0 0 0 75.8% 27 s
windows-latest 5.3 923 0 0 0 294 0 1175 0 0 0 75.8% 68 s
macos-latest 5.4 1000 0 0 0 300 0 1092 0 0 0 76.9% 69 s
ubuntu-latest 5.4 1000 0 0 0 300 0 1092 0 0 0 76.9% 48 s
windows-latest 5.4 1000 0 0 0 300 0 1092 0 0 0 76.9% 122 s
macos-latest 5.5 1034 0 0 0 308 0 1050 0 0 0 77.0% 64 s
ubuntu-latest 5.5 1034 0 0 0 308 0 1050 0 0 0 77.0% 39 s
windows-latest 5.5 1034 0 0 0 308 0 1050 0 0 0 77.0% 89 s

Unexpected deltas are mismatches, one-sided outputs, missing outputs, or new/changed/missing both-error ratchet entries.

Unexpected deltas: no. Regression signal: no.

Generated by Lua comparison CI (run logs).

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 1 finding.

The positional insertion path still overflows for valid Lua 5.3–5.5 lengths.

10860 in, 1986 out tokens. Comments only; this review never blocks a merge.

@cursor

cursor Bot commented Nov 24, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No actionable defects found in the diff.

13061 in, 2388 out tokens. Comments only; this review never blocks a merge.

@wallstop
Eli Pinkerton (wallstop) merged commit 4952361 into main Nov 24, 2026
45 checks passed
@wallstop
Eli Pinkerton (wallstop) deleted the fix/session-192-table-insert branch November 24, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Honor table.insert arity and zero return values in Lua 5.1–5.5

1 participant