Skip to content

Comments

Claude/go on dis benchmarks qscb h#18

Merged
pdfinn merged 2 commits intomasterfrom
claude/go-on-dis-benchmarks-qscbH
Feb 23, 2026
Merged

Claude/go on dis benchmarks qscb h#18
pdfinn merged 2 commits intomasterfrom
claude/go-on-dis-benchmarks-qscbH

Conversation

@pdfinn
Copy link

@pdfinn pdfinn commented Feb 23, 2026

No description provided.

Add 12 diverse benchmarks comparing Native Go, Go-on-Dis JIT,
Go-on-Dis Interpreter, Limbo JIT, and Limbo Interpreter across:

- Compute: fibonacci, sieve of eratosthenes, matrix multiply, nbody
- Data structures: quicksort, binary search, map operations
- Strings: string concatenation
- Concurrency: channel throughput, goroutine/spawn creation
- Language features: closures, interface dispatch

Fix IRAISE operand placement bug in godis compiler (lower.go):
Two call sites used Inst1(IRAISE, ...) which places the operand
in dst position, but IRAISE expects its string argument in src
position. This caused JIT "compile failed" errors on any code
using interface method dispatch or type assertion panics.

Disable GPU module in Linux emu config (not available on this
platform) to allow headless builds to link successfully.

Key findings from benchmark results:
- Go-on-Dis JIT is 2-11x faster than Go-on-Dis interpreter
- Go-on-Dis JIT beats Limbo JIT on fibonacci (1.8x) and
  interface dispatch (4.5x), showing efficient tagged dispatch
- Limbo JIT beats Go-on-Dis JIT on array-heavy workloads
  (sieve 1.8x, matrix 1.8x) due to native array operations
- Concurrency (spawn/channel) performance is similar across
  all Dis modes since it's dominated by VM runtime overhead
- Native Go is 20-98x faster than Go-on-Dis interpreter

https://claude.ai/code/session_01VLPuF45JPLiLvWKHh57GG9
Ignore benchmarks/_build/ (compiled .dis and native binaries)
and tools/godis/godis (compiled Go binary) since these are
build outputs that should not be tracked.

https://claude.ai/code/session_01VLPuF45JPLiLvWKHh57GG9
@pdfinn pdfinn merged commit 42ea551 into master Feb 23, 2026
6 checks passed
@pdfinn pdfinn deleted the claude/go-on-dis-benchmarks-qscbH branch February 23, 2026 09:40
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.

2 participants