Skip to content

Lab 12 submission#1328

Open
tdzdslippen wants to merge 1 commit into
inno-devops-labs:mainfrom
tdzdslippen:feature/lab12
Open

Lab 12 submission#1328
tdzdslippen wants to merge 1 commit into
inno-devops-labs:mainfrom
tdzdslippen:feature/lab12

Conversation

@tdzdslippen

Copy link
Copy Markdown

Goal

Lab 12 (bonus): Moscow-time JSON endpoint as Spin/TinyGo WASM component, perf comparison vs Lab 6 Docker, bonus standalone WASI module under wasmtime.

Changes

  • wasm/ β€” Spin 3.4 http-go scaffold: main.go, spin.toml, go.mod, go.sum, built main.wasm (~360 KiB)
  • wasm-cli/ β€” same logic without Spin SDK, wasmtime run with REQUEST_METHOD/PATH_INFO (~191 KiB)
  • submissions/lab12.md β€” build/curl evidence, perf table, design questions a–j
  • artifacts/lab12/ β€” hyperfine warm runs, cold-start samples, sizes

Testing

  • spin build β†’ main.wasm OK
  • spin up --listen 127.0.0.1:3000 β†’ curl http://127.0.0.1:3000/time β†’ HTTP 200 JSON
  • hyperfine warm: Spin p50 ~10 ms vs Docker /health p50 ~11 ms
  • Cold start (5 samples): Spin p50 ~91 ms vs Docker p50 ~155 ms
  • Bonus: wasmtime run --env REQUEST_METHOD=GET --env PATH_INFO=/time wasm-cli/main.wasm β†’ 200 + JSON
  • Toolchain: Spin 3.4.1, TinyGo 0.41.1, wasmtime 46.0.1, hyperfine 1.20.0

Checklist

  • Title ≀ 70 chars
  • Commits signed
  • submissions/lab12.md updated

Signed-off-by: tdzdslippen <avlaptev@avito.ru>
@tdzdslippen tdzdslippen changed the title Lab 12: WASM Spin /time endpoint + perf vs Docker Lab 12 submission Jul 4, 2026
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.

1 participant