r/Cerebras • u/OfficialCerebras • 5h ago
Built with Cerebras Cerebras Demo: SQL Query Optimization in Buzz at 1,500 TPS
Watch a live side-by-side speed comparison of GLM 5.3 Flash running on Cerebras vs. GPUs (via Fireworks) as an AI agent optimizes a SQL query in Buzz.
In this demo, we test how ultra-fast inference speeds up multi-step database and coding workflows. The agent was given this prompt:
"Optimize this SQL query to reduce execution time without changing the results"
The agent running on Cerebras rewrote and verified the Open English Wordnet SQLite query in 2 minutes 24 seconds, nearly twice as fast as GPUs (4 minutes 47 seconds). It hit speeds of up to 1,500 tokens per second and cut query execution time to 0.358 seconds.
Key highlights:
- Side-by-side agent benchmark: GLM 5.3 Flash on Cerebras (2m 24s) vs. GPUs through Fireworks (4m 47s)
- Real-time SQL optimization in Buzz: Automated query rewriting with window functions, result verification across all 500 rows, and 0.358s execution time
- Ultra-fast throughput: Up to 1,500 tokens per second for instant agentic responsiveness
