File size: 8,516 Bytes
6318a86
 
 
 
e15e480
 
6318a86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
e15e480
6318a86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e15e480
 
6318a86
 
 
 
 
 
 
 
 
 
 
 
 
e15e480
 
6318a86
 
 
 
 
 
 
 
 
 
 
 
 
e15e480
 
6318a86
 
 
 
 
 
 
 
 
 
 
 
 
e15e480
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6318a86
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
 "title": "Claude Code vs Codex: startup tokens, MCP tools and the same coding task",
 "url": "https://tokensave.app/data/claude-code-vs-codex-tokens",
 "license": "CC BY 4.0",
 "measured": "2026-10-18 and 2026-10-22",
 "citation": "TokenSave (2026). Claude Code vs Codex: startup tokens, MCP tools and the same coding task [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23448342",
 "startup": {
  "prompt": "Reply with the single word OK.",
  "mcp_server": "Self-written stdio MCP server (mcp_dummy.js) exposing N tracker tools, each with a one-sentence description and a 5-property input schema. Full definitions: 151 o200k tokens per tool, 4,541 for 30 tools.",
  "full_definition_tokens_o200k": {
   "1": 151,
   "30": 4541
  },
  "codex_tool_use_check": {
   "mcp_tools": 10,
   "input_tokens": 47876
  },
  "rows": [
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5 (default, Max plan)",
    "mcp_tools": 0,
    "run1": 35765,
    "run2": 35777,
    "avg": 35776,
    "added_vs_no_mcp": 0,
    "runs": [
     35765,
     35777,
     35781,
     35781
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5 (default, Max plan)",
    "mcp_tools": 1,
    "run1": 35790,
    "run2": 35790,
    "avg": 35792,
    "added_vs_no_mcp": 16,
    "runs": [
     35790,
     35790,
     35794,
     35794
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5 (default, Max plan)",
    "mcp_tools": 10,
    "run1": 35913,
    "run2": 35913,
    "avg": 35915,
    "added_vs_no_mcp": 139,
    "runs": [
     35913,
     35913,
     35917,
     35917
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5 (default, Max plan)",
    "mcp_tools": 30,
    "run1": 36165,
    "run2": 36165,
    "avg": 36167,
    "added_vs_no_mcp": 391,
    "runs": [
     36165,
     36165,
     36169,
     36169
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort low (ChatGPT plan)",
    "mcp_tools": 0,
    "run1": 14678,
    "run2": 14678,
    "avg": 14748,
    "added_vs_no_mcp": 0,
    "runs": [
     14678,
     14678,
     15018,
     14618
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort low (ChatGPT plan)",
    "mcp_tools": 1,
    "run1": 14678,
    "run2": 14678,
    "avg": 14648,
    "added_vs_no_mcp": -100,
    "runs": [
     14678,
     14678,
     14618,
     14618
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort low (ChatGPT plan)",
    "mcp_tools": 10,
    "run1": 14678,
    "run2": 14678,
    "avg": 14648,
    "added_vs_no_mcp": -100,
    "runs": [
     14678,
     14678,
     14618,
     14618
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort low (ChatGPT plan)",
    "mcp_tools": 30,
    "run1": 14678,
    "run2": 14678,
    "avg": 14648,
    "added_vs_no_mcp": -100,
    "runs": [
     14678,
     14678,
     14618,
     14618
    ],
    "run_dates": [
     "2026-10-18",
     "2026-10-18",
     "2026-10-22",
     "2026-10-22"
    ]
   }
  ]
 },
 "same_task": {
  "measured": "2026-10-18 (runs 1-2) and 2026-10-22 (runs 3-5)",
  "prompt": "Make a brick-breaker game that runs in the browser as a single file named index.html in the current folder. It needs 2 levels, a score display and 3 lives, and it must be playable with the keyboard and the mouse. Write the file and finish.",
  "setup": "Each run in its own empty folder, no MCP servers. Claude Code: claude -p --effort medium --permission-mode acceptEdits --output-format json; tokens from modelUsage, cost is Claude Code list API cost. Codex: codex exec --json -s workspace-write -c model_reasoning_effort=\"medium\"; tokens from turn.completed. Time is wall-clock. Every game loaded without errors and showed 2 levels, score and 3 lives in a headless browser check.",
  "rows": [
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5, effort medium",
    "run": 1,
    "input_tokens": 123666,
    "cached_input_tokens": 95504,
    "output_tokens": 8537,
    "seconds": 73,
    "api_cost_usd": 0.42,
    "file_lines": 487,
    "file_chars": 14992,
    "works": true,
    "measured": "2026-10-18"
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5, effort medium",
    "run": 2,
    "input_tokens": 79213,
    "cached_input_tokens": 51762,
    "output_tokens": 7870,
    "seconds": 63,
    "api_cost_usd": 0.39,
    "file_lines": 527,
    "file_chars": 15088,
    "works": true,
    "measured": "2026-10-18"
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort medium",
    "run": 1,
    "input_tokens": 47954,
    "cached_input_tokens": 29824,
    "output_tokens": 2872,
    "seconds": 33,
    "api_cost_usd": null,
    "file_lines": 49,
    "file_chars": 7566,
    "works": true,
    "measured": "2026-10-18"
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort medium",
    "run": 2,
    "input_tokens": 48815,
    "cached_input_tokens": 37504,
    "output_tokens": 3803,
    "seconds": 41,
    "api_cost_usd": null,
    "file_lines": 117,
    "file_chars": 10045,
    "works": true,
    "measured": "2026-10-18"
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5, effort medium",
    "run": 3,
    "input_tokens": 79316,
    "cached_input_tokens": 51766,
    "output_tokens": 7897,
    "seconds": 62,
    "api_cost_usd": 0.3887,
    "file_lines": 513,
    "file_chars": 14756,
    "works": true,
    "measured": "2026-10-22"
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5, effort medium",
    "run": 4,
    "input_tokens": 77868,
    "cached_input_tokens": 51766,
    "output_tokens": 6595,
    "seconds": 52,
    "api_cost_usd": 0.3511,
    "file_lines": 421,
    "file_chars": 12034,
    "works": true,
    "measured": "2026-10-22"
   },
   {
    "tool": "claude_code",
    "tool_name": "Claude Code 2.1.295",
    "model": "claude-opus-5-5, effort medium",
    "run": 5,
    "input_tokens": 78830,
    "cached_input_tokens": 51766,
    "output_tokens": 7447,
    "seconds": 60,
    "api_cost_usd": 0.3758,
    "file_lines": 420,
    "file_chars": 13618,
    "works": true,
    "measured": "2026-10-22"
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort medium",
    "run": 3,
    "input_tokens": 70704,
    "cached_input_tokens": 60032,
    "output_tokens": 7118,
    "seconds": 75,
    "api_cost_usd": null,
    "file_lines": 29,
    "file_chars": 9756,
    "works": true,
    "measured": "2026-10-22"
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort medium",
    "run": 4,
    "input_tokens": 48362,
    "cached_input_tokens": 37248,
    "output_tokens": 3468,
    "seconds": 72,
    "api_cost_usd": null,
    "file_lines": 46,
    "file_chars": 9368,
    "works": true,
    "measured": "2026-10-22"
   },
   {
    "tool": "codex",
    "tool_name": "Codex CLI 0.162",
    "model": "gpt-6-luna, reasoning effort medium",
    "run": 5,
    "input_tokens": 47975,
    "cached_input_tokens": 37248,
    "output_tokens": 3103,
    "seconds": 57,
    "api_cost_usd": null,
    "file_lines": 51,
    "file_chars": 8660,
    "works": true,
    "measured": "2026-10-22"
   }
  ]
 }
}