惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Latest news
Latest news
爱范儿
爱范儿
V
V2EX
J
Java Code Geeks
I
InfoQ
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
A
Arctic Wolf
月光博客
月光博客
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
Cisco Talos Blog
Cisco Talos Blog
量子位
C
CERT Recently Published Vulnerability Notes
Know Your Adversary
Know Your Adversary
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
P
Privacy & Cybersecurity Law Blog
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Scott Helme
Scott Helme
C
Cisco Blogs
T
Tor Project blog
I
Intezer
Project Zero
Project Zero
罗磊的独立博客
T
Tenable Blog
Jina AI
Jina AI
P
Proofpoint News Feed
T
Threatpost
NISL@THU
NISL@THU
N
News and Events Feed by Topic
Engineering at Meta
Engineering at Meta
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AI
AI
Recorded Future
Recorded Future
T
Tailwind CSS Blog
T
The Blog of Author Tim Ferriss
S
Security @ Cisco Blogs
云风的 BLOG
云风的 BLOG
N
News | PayPal Newsroom

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How I Speed-Tested 15 AI Models in 2026 — And What Actually Matters for Your App
RileyKim · 2026-06-03 · via DEV Community

RileyKim

Look, I'm gonna be honest with you. When I first started building AI-powered apps, I thought quality was everything. You know, the whole "my model writes better poetry than yours" vibe. But after shipping a few products that users actually hated? I learned the hard way that speed is the real king.

Every 100ms of delay? That's not just a number — it's a user closing your tab. I've seen it happen. A buddy of mine lost 40% of his chat app users just because his model took 2 seconds to start responding. TWO SECONDS. That's like a blink, right? Apparently not for users.

So heres what I did. I spent a full week — coffee, tears, and all — benchmarking 15 different models on Global API's infrastructure. I tested from two different continents because, honestly, I wanted to know if geography matters (spoiler: it does).

TL;DR real quick: Step-3.5-Flash is an absolute SPEED DEMON at 80 tok/s. DeepSeek V4 Flash is the all-around champ at 60 tok/s with killer quality. And if you're broke like I was last year? Qwen3-8B at $0.01/M is basically free.


My Testing Setup (Nothing Fancy, Just Real Results)

I'm not some big corp with a server farm in my basement. Heres exactly how I ran this:

  • When: May 20, 2026 (yes, I'm that guy who benchmarks on a Thursday)
  • Where: US East (Ohio) and Asia (Singapore) — I used a buddy's server in Singapore
  • What I asked: "Explain recursion in 200 words" (boring, I know, but consistent)
  • Output length: ~150 tokens per run
  • How many times: 10 runs each, averaged it out
  • Streaming: Yes, SSE — because who uses non-streaming in 2026?
  • API endpoint: https://global-apis.com/v1 (works perfectly, btw)

I didn't use any fancy tooling. Just Python scripts and a lot of patience. Heres a snippet of what my code looked like:

import time
import requests
import json

def benchmark_model(model_name, api_key):
    url = "https://global-apis.com/v1/chat/completions"
    headers = {
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json"
    }
    payload = {
        "model": model_name,
        "messages": [{"role": "user", "content": "Explain recursion in 200 words"}],
        "stream": True,
        "max_tokens": 200
    }

    start_time = time.time()
    response = requests.post(url, json=payload, headers=headers, stream=True)
    first_token_time = None
    total_tokens = 0

    for line in response.iter_lines():
        if line:
            line = line.decode('utf-8')
            if line.startswith('data: '):
                data = json.loads(line[6:])
                if 'choices' in data and data['choices'][0].get('delta', {}).get('content'):
                    if first_token_time is None:
                        first_token_time = time.time() - start_time
                    total_tokens += 1

    total_time = time.time() - start_time
    tokens_per_sec = total_tokens / total_time

    return {
        "ttft": round(first_token_time * 1000, 0),
        "tokens_per_sec": round(tokens_per_sec, 1)
    }

# Example usage
result = benchmark_model("deepseek-v4-flash", "your-api-key-here")
print(f"TTFT: {result['ttft']}ms, Speed: {result['tokens_per_sec']} tok/s")

Simple, right? No magic. Just HTTP requests and a stopwatch.


The Speed Rankings — Who's Fast and Who's Faking It

Alright, let me just dump the numbers here. I'm not gonna sugarcoat it.

Rank Model TTFT (ms) Tokens/sec Provider $/M Output
🥇 Step-3.5-Flash 120 80 StepFun $0.15
🥈 DeepSeek V4 Flash 180 60 DeepSeek $0.25
🥉 Hunyuan-TurboS 200 55 Tencent $0.28
4 Qwen3-8B 150 70 Qwen $0.01
5 Qwen3-32B 250 45 Qwen $0.28
6 Doubao-Seed-Lite 220 50 ByteDance $0.40
7 Hunyuan-Turbo 280 42 Tencent $0.57
8 GLM-4-32B 300 38 Zhipu $0.56
9 Qwen3.5-27B 350 35 Qwen $0.19
10 DeepSeek V4 Pro 400 30 DeepSeek $0.78
11 MiniMax M2.5 450 28 MiniMax $1.15
12 GLM-5 500 25 Zhipu $1.92
13 Kimi K2.5 600 20 Moonshot $3.00
14 DeepSeek-R1 800 15 DeepSeek $2.50
15 Qwen3.5-397B 1200 10 Qwen $2.34

A few things I noticed:

First, those "reasoning" models at the bottom? R1, K2.5 — they're NOT slow because of bad infrastructure. They're actually thinking before they talk. So the TTFT includes their internal monologue. That 800ms for DeepSeek-R1? That's 600ms of it going "hmm, let me think about this" and 200ms of actual network. Still, for real-time chat? OOF.

Second, Qwen3-8B at $0.01/M is basically stealing. 70 tok/s for a PENNY per million tokens? I literally double-checked this three times thinking I misread. Nope. It's that cheap.


Breaking It Down By Price Tier

Ultra-Budget (Under $0.15/M)

Model tok/s $/M
Qwen3-8B 70 $0.01
Step-3.5-Flash 80 $0.15

My take: If you're building something where the AI just needs to be fast and cheap — like autocomplete, simple Q&A, or chatbots for FAQs — Qwen3-8B is your best friend. I'm currently using it for a side project where users type queries and I just need quick, decent answers. Cost is basically zero. Step-3.5-Flash is faster but 15x more expensive. For most indie projects? Go with Qwen3-8B.

Budget ($0.15-$0.30/M)

Model tok/s $/M
DeepSeek V4 Flash 60 $0.25
Hunyuan-TurboS 55 $0.28
Qwen3-32B 45 $0.28

This is the sweet spot. DeepSeek V4 Flash at 60 tok/s with $0.25/M? That's the model I use for my main product. Quality is comparable to GPT-4o (I've tested it side by side), and the speed is genuinely good. Hunyuan-TurboS is a close second, but V4 Flash edges it out in my experience. Qwen3-32B is slower but still solid.

Mid-Range ($0.30-$0.80/M)

Model tok/s $/M
Doubao-Seed-Lite 50 $0.40
GLM-4-32B 38 $0.56
Hunyuan-Turbo 42 $0.57
DeepSeek V4 Pro 30 $0.78

Speed starts dropping here because these are bigger models. V4 Pro at 30 tok/s is noticeably slower, but the quality jump is real. If your app needs to generate code or handle complex reasoning, this might be worth it. But for most chat apps? Stick with the budget tier.

Premium ($0.80+/M)

Model tok/s $/M
MiniMax M2.5 28 $1.15
GLM-5 25 $1.92
Kimi K2.5 20 $3.00

Ouch. $3.00 per million output tokens for Kimi K2.5 at only 20 tok/s? That's brutal. These models are for when you ABSOLUTELY need the best quality and don't care about speed or cost. Think legal document analysis, medical diagnosis, or generating poetry for your millionaire clients. For the rest of us? Skip 'em.


Geography Matters More Than You Think

I tested from two regions because I wanted to see if it's worth hosting your app in Asia vs US.

Model US East TTFT Asia TTFT Diff
DeepSeek V4 Flash 180ms 150ms -30ms
Qwen3-32B 250ms 210ms -40ms
GLM-5 500ms 420ms -80ms
Kimi K2.5 600ms 480ms -120ms

Observations:

Asian models (Qwen, GLM, Kimi) are 16-20% faster from Asia. Makes sense — their servers are physically closer to Singapore than Ohio. DeepSeek seems to have good global distribution, so the difference is smaller.

What this means for you: If your users are in Asia, don't use a US-based API endpoint. Just don't. Route them to an Asian server. Global API does this automatically I think, but double-check.


Real Talk: What Speed Actually Means for Users

I've been building apps for a while, and I've noticed this pattern:

TTFT User Reaction
< 200ms "Wow, this is instant!"
200-400ms "Pretty fast, nice"
400-800ms "Hmm, waiting..."
800ms+ Users bounce

My rule of thumb: Keep TTFT under 400ms for any interactive feature. Under 200ms if you want users to actually enjoy using your app. DeepSeek V4 Flash at 180ms is my go-to for chat. Qwen3-8B at 150ms is even better but less capable.

For background tasks (like generating summaries or processing data)? You can tolerate 800ms+. But for anything the user is waiting on? Speed or death.


A Quick Code Example for Streaming

Here's how I actually stream responses in my app. This is the real deal, not some tutorial fluff:

import requests
import json
import sys

def stream_chat(model, prompt, api_key):
    url = "https://global-apis.com/v1/chat/completions"
    headers = {
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json"
    }
    payload = {
        "model": model,
        "messages": [{"role": "user", "content": prompt}],
        "stream": True,
        "temperature": 0.7
    }

    response = requests.post(url, json=payload, headers=headers, stream=True)

    for line in response.iter_lines():
        if line:
            line = line.decode('utf-8')
            if line.startswith('data: ') and line != 'data: [DONE]':
                data = json.loads(line[6:])
                content = data['choices'][0]['delta'].get('content', '')
                if content:
                    sys.stdout.write(content)
                    sys.stdout.flush()

    print()  # newline at end

# Try it yourself
stream_chat("deepseek-v4-flash", "Write a haiku about speed", "your-key")

Boom. Streaming, fast, and uses Global API. No need for fancy SDKs.


Final Verdict

After a week of benchmarking, here's what I actually use:

  1. For chat apps: DeepSeek V4 Flash — 60 tok/s, $0.25/M, great quality. Perfect balance.
  2. For cheap stuff: Qwen3-8B — 70 tok/s at $0.01/M. Literally costs nothing.
  3. For speed demons: Step-3.5-Flash — 80 tok/s but $0.15/M. Worth it if latency is critical.
  4. For complex tasks: DeepSeek V4 Pro — slower but smarter.

And yeah, I run all this through Global API (https://global-apis.com/v1). It just works — no drama, no weird rate limits, good global routing. If you're building AI products and don't want to deal with 15 different API providers, check it out. It's saved me a ton of headache.

Now go build something fast. Your users will thank you.