Skip to content

New benchmark: a port of Richards to Kotlin/Wasm#319

Merged
fitzgen merged 3 commits into
bytecodealliance:mainfrom
fitzgen:sightglass-kotlin-richards
Jun 25, 2026
Merged

New benchmark: a port of Richards to Kotlin/Wasm#319
fitzgen merged 3 commits into
bytecodealliance:mainfrom
fitzgen:sightglass-kotlin-richards

Conversation

@fitzgen

@fitzgen fitzgen commented Jun 24, 2026

Copy link
Copy Markdown
Member

A Kotlin port of the classic Richards benchmark: a simulation of an operating system's scheduler. This version is a Wasm component produced via Kotlin/Wasm's wasmWasi target and wasm-tools component new.

Richards is an integer/pointer-heavy workload built around linked lists of "packets" routed between cooperating tasks (idle, worker, handler, device). It exercises object allocation, virtual dispatch, and pointer chasing, and here it also exercises the WasmGC, typed-function-references, and exception-handling proposals that Kotlin/Wasm relies on.

fitzgen added 2 commits June 24, 2026 14:30
This adds a Kotlin port of the classic Richards benchmark: a simulation of an
operating system's scheduler. This version is a Wasm component produced via
Kotlin/Wasm's `wasmWasi` target and `wasm-tools component new`.

Richards is an integer/pointer-heavy workload built around linked lists of
"packets" routed between cooperating tasks (idle, worker, handler, device). It
exercises object allocation, virtual dispatch, and pointer chasing, and here it
also exercises the WasmGC, typed-function-references, and exception-handling
proposals that Kotlin/Wasm relies on.
@fitzgen fitzgen requested a review from posborne June 24, 2026 21:57

@posborne posborne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good; definitely a good workload to exercise paths we aren't covering well today (gc/exception handlers).

@fitzgen fitzgen merged commit d8d8aee into bytecodealliance:main Jun 25, 2026
12 checks passed
@fitzgen fitzgen deleted the sightglass-kotlin-richards branch June 25, 2026 14:50
@fitzgen

fitzgen commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

Thanks!

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