---
title: "2,000 robots walk into a shop..."
description: "SimGym runs simulated A/B tests on Shopify storefronts by sending up to 2,000 concurrent LLM-driven shopper agents through Browserbase cloud browsers."
url: "https://swe.quest/articles/2-000-robots-walk-into-a-shop-197e6155a91a1c15"
canonical: "https://shopify.engineering/simgym"
source: "Shopify Engineering"
published: "2026-02-27"
difficulty: "hard"
kind: "Case study"
reading_minutes: 8
tags: ["inference","ai-agents","llms","performance","hardware"]
---

# 2,000 robots walk into a shop...

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-02-27, 8 min read, Case study. Original: [https://shopify.engineering/simgym](https://shopify.engineering/simgym)

## Summary

SimGym runs simulated A/B tests on Shopify storefronts by sending up to 2,000 concurrent LLM-driven shopper agents through Browserbase cloud browsers. Because browsers bill per minute, inference latency directly drives cost: a ~20% latency cut lowered cost per merchant run by ~10%. The team self-hosted gpt-oss-120b on 48 B200 GPUs with vLLM and FlashInfer, using MXFP4 experts, an FP8 KV-cache, custom long-context speculative decoding kernels (EAGLE-3) and combined async/guided/speculative decoding. MIG partitioning cut latency ~20% and prefix-cache-friendly prompts added ~12% throughput, while lowering reasoning effort was rejected because error rates rose to as much as 10.9%.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)

## Prerequisites

- LLM serving with vLLM ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Mixture-of-Experts models
- speculative decoding
- GPU memory bandwidth basics ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

SimGym, gpt-oss-120b, vLLM, FlashInfer, NVIDIA B200, EAGLE-3, Browserbase, CentML

## Related posts

- [Model Routing Is Simple. Until It Isn’t.](https://swe.quest/articles/model-routing-is-simple-until-it-isn-t-aff4745dc4d94524.md): Hugging Face · 2026-07-15 · Easy · 5 min read · Inference & serving, AI agents, LLMs, Cost optimization
  LLM model routing in agentic systems is a systems optimization problem, not a classification one.
- [Benchmarking Text Generation Inference](https://swe.quest/articles/benchmarking-text-generation-inference-6c04e8c47131c2d4.md): Hugging Face · 2024-05-29 · Medium · 10 min read · Inference & serving, Performance engineering, LLMs
  Text Generation Inference ships a benchmarking tool that profiles LLM serving across batch sizes, plotting throughput against latency separately for prefill and decode so deployments can be tuned for a workload such as RAG or chat.
- [Break chatbot speed limits with speculative tool calls](https://swe.quest/articles/break-chatbot-speed-limits-with-speculative-tool-calls-83dbf2c2a180290f.md): incident.io · 2025-03-25 · Medium · 10 min read · AI agents, LLMs, Performance engineering, Go
  incident.io cut its incident chatbot's response latency by about 50% (saving 2-3s per interaction) by speculatively executing LLM tool calls in both directions.
- [How Shopify turns open models into task experts](https://swe.quest/articles/how-shopify-turns-open-models-into-task-experts-a2ba67e222beb92b.md): Shopify Engineering · 2026-10-21 · Hard · 5 min read · Model training, Inference & serving, Evaluation, AI agents, Cost optimization
  Shopify's Sidekick keeps a frontier model for merchant conversation and planning but offloads token-heavy subagent work, such as GraphQL query generation, to open models it post-trains and self-hosts.
- [Make your llama generation time fly with AWS Inferentia2](https://swe.quest/articles/make-your-llama-generation-time-fly-with-aws-inferentia2-bc8b5e1981a590c0.md): Hugging Face · 2023-11-07 · Medium · 7 min read · Inference & serving, LLMs, Hardware, Cloud platforms, Performance engineering
  optimum-neuron can now compile and export Llama 2 models for text generation on AWS Inferentia2, using static input shapes (batch size, 2048 sequence length that also bounds the KV cache) and a configurable core count and fp16 precision.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
