In the author's single debugging run on the same codebase, both models found a fix. The author recorded DeepSeek 4.1 Flash 1017 taking 3 minutes and 2.9M tokens, while GLM-5.4 took 17 minutes 23 seconds and 5.9M tokens. Although both were set to Max, DeepSeek ran through OpenRouter's Morph and GLM-5.4 through the Z.ai Coding Plan; the harnesses and providers differed, so this does not support a pure model ranking or cost conclusion.
Tasks this can help assess: Single-run time and token usage when a coding Agent handles complex codebase debugging in this user's environment.
Tasks this should not be generalized to: Accuracy, speed, cost, or general model rankings across all codebases, clients, providers, and network conditions.
Applicable model versions: DeepSeek 4.1 Flash 1017 and GLM-5.4; the post does not provide more specific snapshots or API versions.
Test environment or client: The same user's codebase; DeepSeek through OpenRouter (provider: Morph, 161 t/s), and GLM-5.4 through the Z.ai Coding Plan. The specific Agent, harness, machine, region, and network were not specified.
Reasoning level and parameters: Both were set to Max reasoning effort; temperature, context length, output limit, and other parameters were not specified.
The author asked DeepSeek 4.1 Flash 1017 and GLM-5.4 to debug the same issue in the author's codebase.
Both runs were set to Max reasoning effort; the test order, complete prompts, codebase version, and acceptance criteria were not public.
DeepSeek ran through OpenRouter's Morph provider (the author recorded 161 t/s), while GLM-5.4 ran through the Z.ai Coding Plan. The two runs did not use the same provider or a confirmed common harness.
The author treated “identify the issue and find a fix” as the completion condition, recording time and total token volume separately.
| Metric | DeepSeek 4.1 Flash 1017 | GLM-5.4 | Notes |
|---|---|---|---|
| Reasoning level | Max | Max | Only the author's setting description can be confirmed; no effective-setting logs were provided |
| Provider/access | OpenRouter, Morph, 161 t/s | Z.ai Coding Plan | Providers, subscriptions, and server-side services differed |
| Result | Identified the issue and found a fix | Identified the issue and found a fix | Both completed the goal described by the author |
| Time | 3 minutes | 17 minutes 23 seconds | By the author's record, GLM-5.4 was about 5.8× as slow; this is not a pure model-speed comparison under the same harness |
| total token volume | 2.9M | 5.9M | By the author's record, GLM-5.4 used about 2.0× as many; the measurement definition was not specified |
| Publicly reported cost | $0.04 | Not specified | Only the explicitly stated DeepSeek cost is retained; GLM-5.4's cost is not estimated |
The core record in the target comment is: both set on Max reasoning effort; DeepSeek 4.1 Flash 1017 “in 3m (total token volume: 2.9M). Cost: 0.04$”, and GLM-5.4 “in 17m 23s (total token volume: 5.9M)”.
The original comment's ID is 19t2a19jte57k.
In a later thread comment, the author explained that they had an instruction set built over several months and indexed to the codebase, and that the codebase was large with complex system-performance issues that could require days of manual investigation; they therefore did not consider using Max for this kind of scenario excessive: https://www.reddit.com/r/ZaiGLM/comments/1y38zh3/comment/19t2lbqpe1jhh/.
The author later clarified that they were not treating the single test as a conclusion, only that they were temporarily “not impressed”; once GLM-5.4 became available through another provider, they planned to use the same harness and configuration, changing only the model to eliminate the harness variable: https://www.reddit.com/r/ZaiGLM/comments/1y38zh3/comment/19t2ngew7u7z9/.
The post body contains only the title “Finally GLM 5.4 is out !!!!” and provides no test task, input, code, patch, logs, or score; the target comment appears in the post's top-level comment section.
The limited conclusion supported by this record is that, under the author's codebase, instruction set, and the two access conditions at the time, both models found a fix, while GLM-5.4 had higher recorded time and token volume. The ratios can be calculated directly:
Time ratio 1,043 seconds ÷ 180 seconds ≈ 5.8
Token ratio 5.9M ÷ 2.9M ≈ 2.0
The following conclusions cannot be drawn from this:
GLM-5.4 has lower general coding ability than DeepSeek 4.1 Flash 1017; only one issue was tested, with no quality score or patch comparison.
GLM-5.4 is generally about 5.8× slower than DeepSeek, or generally consumes about 2× as many tokens; the provider, service load, harness, and parameter accounting were not standardized.
GLM-5.4's actual call cost is higher or lower than DeepSeek's; the source records only DeepSeek's $0.04, while GLM-5.4's cost is not specified.
Max is the generally optimal setting for this kind of task; this was the author's choice for their own complex codebase, not a recommendation for other tasks.
Strict reproduction is currently impossible because the original does not disclose the complete prompts, codebase snapshot, model/API versions, harness, tool permissions, token-accounting definition, or logs. A comparable retest should at minimum fix:
The same codebase commit, issue, prompt, and acceptance criteria;
The same Agent/harness, provider, network conditions, and tool configuration, changing only the model;
The actual effective parameters for Max, context/output limits, and the accounting definitions for input/output/reasoning tokens;
Request start/end times, tool calls, fix patches, test results, failed retries, and the actual bill;
Multiple independent issues, with accuracy, time, token usage, and cost reported separately.
This entry should be treated as a single personal field comparison, not as a reproducible benchmark or pricing comparison.
GLM-5.4