JMeter Plugin Development - Ollama Stream Sampler & TTFT @QAInsights
JMeter Plugin Development - Ollama Stream Sampler & TTFT  @QAInsights
Uploaded April 2026 | Updated November 2026, 3 days ago
In Episode 5, we transition from analyzing errors to generating high-fidelity AI load. Standard JMeter samplers only measure total duration, but for LLMs, the most important metric is TTFT (Time to First Token).

In this video, we build a custom Ollama Stream Sampler from scratch. You'll learn how to handle streaming HTTP responses in Java, extract real-time tokens, and use JMeter Sub-Results to isolate TTFT from the total generation time.

GitHub Repo: github.com/QAInsights/jmeter-plugin-development-series


🔍 What You Will Learn:
Beyond Total Latency: Why TTFT is the most critical metric for perceived user experience.
Streaming Logic: Using Java’s HttpClient to intercept and parse JSON chunks in real-time.
The Sampler Contract: Extending AbstractSampler and AbstractSamplerGui.
Advanced Reporting: How to use addSubResult to create nested metrics in the View Results Tree.
Distributed Readiness: Using JMeter Properties to scale your AI benchmarks across multiple worker nodes.

🛠️ Technical Highlights:
Implementation of the "Golden Signals" of AI performance.
Manual JSON extraction for lightweight, dependency-free streaming.
Fixing the "Empty Sub-sampler" defect in JMeter.
Managing the sampleStart() and sampleEnd() lifecycle for streaming data.


➡️ Subscribe to my blog qainsights.com
➡️ Join QAInsights Community at https://qain.si/community
➡️ Join QAInsights Academy at https://qain.si/academy
➡️ Buy me a tea 🍵 buymeacoffee.com/qainsights
➡️ Get Certified in CKAD https://qain.si/startk8s
➡️ Get Certified in CKA https://qain.si/cka
➡️ My preferred DNS is NextDNS https://qain.si/nextdns
➡️ Learn Linux https://qain.si/linux
➡️ Get performance testing jobs real quick using Indeed → goo.gl/XAfCcE
➡️ Hostinger Web Hosting → goo.gl/MfwDyU
➡️ My Productivity Tools → goo.gl/2DfC5d
➡️ App Sumo for your business → goo.gl/zj92SA
➡️ Amazon → amzn.to/2L0Jv2n
➡️ TubeBuddy → tubebuddy.com/qainsights
➡️ LoadRunner Playlist youtube.com/playlist?list=PLJ9A48W0kpRIiVf8W7jMvf6Ao-naX3Ari
➡️ My first Udemy course entitled `Performance Testing using DevWeb` has been published https://qain.si/devweb
JMeter Plugin Development - Ollama Stream Sampler & TTFTPerformance Engineers Clubhouse - #24 Performance Engineering and AccessibilityPerformance Engineers Clubhouse - #31 Test Data ManagementPerformance Engineering Series - E7 - Deep-dive into Out of Memory Error using Eclipse MATPerformance Engineers Clubhouse - #14 The Hitchhiking Guide To Load Testing ProjectsLearn JMeter Series #82 - Generate JMeter HTML Report in Style using Latency LingoDdosifys New Feature: ObservabilityPerformance Engineering Series - E20 - Eclipse JifaLearn k6 Series - E6 - ThresholdsLearn Chaos Engineering Series - E13 - Chaos Testing using k6JMeter Plugin Development - AI Error Analyst ListenerLearn Gatling Series - E9 - Feeders
QAInsights |

JMeter Plugin Development - Ollama Stream Sampler & TTFT

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER