FreshContext , home
Drawing
02 · Benchmarks
Sheet
2 of 3
Rev
A · 2026-10-01

← Lab Notes

How much context a Mac keeps up with.

Two small models, two Macs, and the point where a long conversation stops being quick. The limit turned out to be speed, and it sits well below what the models advertise

Status
Measured 23 and 24 November 2026 on a Mac mini (M4 Pro, 24 GB) with nothing else loaded, and on a Mac Studio (M1 Max, 64 GB) with our other models loaded but idle. Two runs for each speed figure up to 64K, one beyond. The speed figures are not part of our run log. The quality runs are
Date
2026-11-24
Lab note
Fig. 1 Past 48K, every turn waitsBTL-4 Compact on both Macs. Worked from the reading speeds in section 4: 1,000 divided by tokens a second.
M4 Pro, 24 GBM4 Pro, 24 GBMac Studio, 64 GBMac Studio, 64 GBseconds to read 1,000 new tokensWhere we keep anagent0510152025Nothing32K48K64K96K128KM4 Pro, 24 GB, Nothing: 1.4 s (1,000 ÷ 722.2)M4 Pro, 24 GB, 8K: 1.7 s (1,000 ÷ 571.6)M4 Pro, 24 GB, 32K: 3.3 s (1,000 ÷ 304.4)M4 Pro, 24 GB, 48K: 4.2 s (1,000 ÷ 235.4)M4 Pro, 24 GB, 64K: 5.1 s (1,000 ÷ 196.7)M4 Pro, 24 GB, 128K: 22.3 s (1,000 ÷ 44.8)Mac Studio, 64 GB, Nothing: 1.4 s (1,000 ÷ 703.6)Mac Studio, 64 GB, 8K: 1.8 s (1,000 ÷ 551.1)Mac Studio, 64 GB, 32K: 3.0 s (1,000 ÷ 337.9)Mac Studio, 64 GB, 48K: 3.7 s (1,000 ÷ 269.1)Mac Studio, 64 GB, 64K: 4.5 s (1,000 ÷ 223.3)Mac Studio, 64 GB, 96K: 6.0 s (1,000 ÷ 166.3)Mac Studio, 64 GB, 128K: 7.6 s (1,000 ÷ 132.0)22.37.6128K, M4 Pro, 24 GB: 22 seconds before it can start a reply7.6 secondsM4 Pro, 24 GBM4 Pro, 24 GBMac Studio, 64 GBMac Studio, 64 GBseconds to read 1,000 newtokensWhere wekeep an agent0510152025032K48K64K96K128KM4 Pro, 24 GB, Nothing: 1.4 s (1,000 ÷ 722.2)M4 Pro, 24 GB, 8K: 1.7 s (1,000 ÷ 571.6)M4 Pro, 24 GB, 32K: 3.3 s (1,000 ÷ 304.4)M4 Pro, 24 GB, 48K: 4.2 s (1,000 ÷ 235.4)M4 Pro, 24 GB, 64K: 5.1 s (1,000 ÷ 196.7)M4 Pro, 24 GB, 128K: 22.3 s (1,000 ÷ 44.8)Mac Studio, 64 GB, Nothing: 1.4 s (1,000 ÷ 703.6)Mac Studio, 64 GB, 8K: 1.8 s (1,000 ÷ 551.1)Mac Studio, 64 GB, 32K: 3.0 s (1,000 ÷ 337.9)Mac Studio, 64 GB, 48K: 3.7 s (1,000 ÷ 269.1)Mac Studio, 64 GB, 64K: 4.5 s (1,000 ÷ 223.3)Mac Studio, 64 GB, 96K: 6.0 s (1,000 ÷ 166.3)Mac Studio, 64 GB, 128K: 7.6 s (1,000 ÷ 132.0)22.37.6128K, M4 Pro, 24 GB: 22 seconds before itcan start a reply128K, Mac Studio, 64 GB: 7.6 seconds

Read this first

Most of this was measured on an M4 Pro Mac mini with 24 GB, with nothing else loaded. Where a figure comes from our Mac Studio (M1 Max, 64 GB), the table says so. The Mac Studio had our other models loaded but idle.

The speed figures are from llama.cpp's own benchmark tool and do not join the run log. The quality figures near the end are full benchmark runs and do.

Both Macs use the same llama.cpp build (b11846) and the same model files, checked by sha256.

The short version

  • Both models slow down steadily as the context fills. By 32K of context they read new text at less than half their starting speed. By 64K, less than a third.
  • Nothing we could set took the slope away. Flash attention, batch size, a smaller or larger quant, the maker's own llama.cpp fork and a newer GPU path all left it where it was.
  • Our working limit is 32K to 48K. Past that a model still runs, but it stops feeling quick.
  • The advertised context is not the usable context. One of these models lists 1,048,576 tokens. The other lists 262,144. Neither is pleasant past 64K on these Macs.
  • On the 24 GB Mac, 128K fell off a cliff. On the 64 GB Mac it did not. Same file, same build.
  • Shrinking the context cache cost writing speed on the M1 Max. Badly, and worse the deeper the context.
  • A 10 GB file kept most of the quality of a 21.5 GB one. It took about half the memory.

What was tested

Two models, picked because both claim very long context and both are cheap to run.

  • Spark-X2.6-4B from XHToken. A 4B dense model. We used the maker's Q4_K_M file, 3.54 GB. Of its 36 layers, 27 look only at the last 512 tokens and 9 look at everything.
  • BTL-4 Compact from Bad Theory Labs. A 35B mixture of experts with about 2.1B parameters active per token, squeezed to 2.30 bits per weight in a single 9.97 GB file. Of its 40 layers, 10 keep a cache that grows with the context.

The test is llama.cpp's benchmark tool: read a 512-token prompt and write 128 tokens, starting with a set number of tokens already in the context. So each figure is the speed of the next piece of work at that depth, not the average over a whole long prompt.

1. Reading, on the M4 Pro

Tokens a second, reading 512 new tokens on top of what is already in the context.

Fig. 2 By 64K both models read at under a third of their starting speedM4 Pro. A 4B dense model and a 35B mixture of experts, falling along almost the same line.
Spark-X2.6-4BSpark-X2.6-4BBTL-4 CompactBTL-4 Compacttokens a second, readingOur working limit0200400600800Nothing8K32K48K64KSpark-X2.6-4B, Nothing: 656.6 tokens a second, readingSpark-X2.6-4B, 8K: 529.0 tokens a second, readingSpark-X2.6-4B, 32K: 318.6 tokens a second, readingSpark-X2.6-4B, 48K: 238.6 tokens a second, readingSpark-X2.6-4B, 64K: 200.6 tokens a second, readingBTL-4 Compact, Nothing: 722.2 tokens a second, readingBTL-4 Compact, 8K: 571.6 tokens a second, readingBTL-4 Compact, 32K: 304.4 tokens a second, readingBTL-4 Compact, 48K: 235.4 tokens a second, readingBTL-4 Compact, 64K: 196.7 tokens a second, reading200.6196.7Spark-X2.6-4BSpark-X2.6-4BBTL-4 CompactBTL-4 Compacttokens a second, readingOur workinglimit020040060080008K32K48K64KSpark-X2.6-4B, Nothing: 656.6 tokens a second, readingSpark-X2.6-4B, 8K: 529.0 tokens a second, readingSpark-X2.6-4B, 32K: 318.6 tokens a second, readingSpark-X2.6-4B, 48K: 238.6 tokens a second, readingSpark-X2.6-4B, 64K: 200.6 tokens a second, readingBTL-4 Compact, Nothing: 722.2 tokens a second, readingBTL-4 Compact, 8K: 571.6 tokens a second, readingBTL-4 Compact, 32K: 304.4 tokens a second, readingBTL-4 Compact, 48K: 235.4 tokens a second, readingBTL-4 Compact, 64K: 196.7 tokens a second, reading200.6196.7
The table behind Fig. 2
Already in contextSpark-X2.6-4BBTL-4 Compact
Nothing656.6722.2
8K529.0571.6
32K318.6304.4
48K238.6235.4
64K200.6196.7
  • The two models fall along almost the same line, though one is a 4B dense model and the other a 35B mixture of experts.
  • At 32K, reading is at 42 to 49% of its starting speed. At 64K, 27 to 31%.
  • There is no cliff in this range. It is a steady slope.

2. Writing, on the M4 Pro

Tokens a second, writing 128 tokens.

Fig. 3 Writing falls more gently, and BTL-4 Compact holds on betterM4 Pro. At 64K BTL-4 Compact keeps half its writing speed. Spark keeps 38%.
Spark-X2.6-4BSpark-X2.6-4BBTL-4 CompactBTL-4 Compacttokens a second, writing020406080Nothing8K32K48K64KSpark-X2.6-4B, Nothing: 68.1 tokens a second, writingSpark-X2.6-4B, 8K: 60.8 tokens a second, writingSpark-X2.6-4B, 32K: 39.2 tokens a second, writingSpark-X2.6-4B, 48K: 33.0 tokens a second, writingSpark-X2.6-4B, 64K: 26.1 tokens a second, writingBTL-4 Compact, Nothing: 64.9 tokens a second, writingBTL-4 Compact, 8K: 58.3 tokens a second, writingBTL-4 Compact, 32K: 45.0 tokens a second, writingBTL-4 Compact, 48K: 39.8 tokens a second, writingBTL-4 Compact, 64K: 32.8 tokens a second, writing26.132.8Spark-X2.6-4BSpark-X2.6-4BBTL-4 CompactBTL-4 Compacttokens a second, writing02040608008K32K48K64KSpark-X2.6-4B, Nothing: 68.1 tokens a second, writingSpark-X2.6-4B, 8K: 60.8 tokens a second, writingSpark-X2.6-4B, 32K: 39.2 tokens a second, writingSpark-X2.6-4B, 48K: 33.0 tokens a second, writingSpark-X2.6-4B, 64K: 26.1 tokens a second, writingBTL-4 Compact, Nothing: 64.9 tokens a second, writingBTL-4 Compact, 8K: 58.3 tokens a second, writingBTL-4 Compact, 32K: 45.0 tokens a second, writingBTL-4 Compact, 48K: 39.8 tokens a second, writingBTL-4 Compact, 64K: 32.8 tokens a second, writing26.132.8
The table behind Fig. 3
Already in contextSpark-X2.6-4BBTL-4 Compact
Nothing68.164.9
8K60.858.3
32K39.245.0
48K33.039.8
64K26.132.8
  • Writing falls too, more gently. BTL-4 Compact keeps half its writing speed at 64K. Spark keeps 38%.
  • BTL-4 Compact holds up better at depth, with fewer of its layers looking at the whole context.

3. What didn't help

All on the M4 Pro, all on Spark-X2.6-4B.

  • A different quant. We ran three files: a third-party 3.03 GB quant, the maker's Q4_K_M and the full BF16 at 8.23 GB. At 64K they read at 163.8, 200.6 and 186.6 tokens a second. The smallest file was the slowest.
  • The maker's own llama.cpp fork. On a real 25,435-token prompt it read at about the same speed as plain llama.cpp, 415 to 434 tokens a second on both.
  • Flash attention off. On the third-party quant, reading at 32K was 305 tokens a second with it off against 270 with it on, and writing was slower, 25.7 against 32.9. The slope was still there.
  • Batch size. Reading 4,096 tokens from cold ran at 500 tokens a second with a batch of 2,048 and 502 at the default 512.
  • Forcing the newer GPU path. llama.cpp has a newer Metal path that is switched on by default only for the newest Apple chips. Forced on here, reading was 5 to 8% slower: 604.8 against 655.4 with nothing in context, 503.2 against 527.2 at 8K.
  • Closing everything else. A clean rerun with nothing else loaded moved the 64K figure from 185.7 to 200.6. Better, not a different answer.

We have not measured an M5 Mac. Other people's published figures suggest the newest chips read several times faster at depth. That is their measurement, not ours.

4. Past 64K

BTL-4 Compact only. Reading, then writing, in tokens a second.

Fig. 4 At 128K the 24 GB Mac fell off a cliff. The 64 GB Mac did notBTL-4 Compact, same file and build on both Macs. The 24 GB Mac wasn't run at 96K at this setting.
M4 Pro, 24 GBM4 Pro, 24 GBMac Studio, 64 GBMac Studio, 64 GBtokens a second, writing020406080Nothing32K48K64K96K128KM4 Pro, 24 GB, Nothing: 64.9 tokens a second, writingM4 Pro, 24 GB, 8K: 58.3 tokens a second, writingM4 Pro, 24 GB, 32K: 45.0 tokens a second, writingM4 Pro, 24 GB, 48K: 39.8 tokens a second, writingM4 Pro, 24 GB, 64K: 32.8 tokens a second, writingM4 Pro, 24 GB, 128K: 11.2 tokens a second, writingMac Studio, 64 GB, Nothing: 65.4 tokens a second, writingMac Studio, 64 GB, 8K: 59.6 tokens a second, writingMac Studio, 64 GB, 32K: 46.4 tokens a second, writingMac Studio, 64 GB, 48K: 40.8 tokens a second, writingMac Studio, 64 GB, 64K: 36.4 tokens a second, writingMac Studio, 64 GB, 96K: 30.0 tokens a second, writingMac Studio, 64 GB, 128K: 25.4 tokens a second, writing11.225.4128K, M4 Pro, 24 GB: 11.2. It wasn't swapping, and we don't know the causeM4 Pro, 24 GBM4 Pro, 24 GBMac Studio, 64 GBMac Studio, 64 GBtokens a second, writing020406080032K48K64K96K128KM4 Pro, 24 GB, Nothing: 64.9 tokens a second, writingM4 Pro, 24 GB, 8K: 58.3 tokens a second, writingM4 Pro, 24 GB, 32K: 45.0 tokens a second, writingM4 Pro, 24 GB, 48K: 39.8 tokens a second, writingM4 Pro, 24 GB, 64K: 32.8 tokens a second, writingM4 Pro, 24 GB, 128K: 11.2 tokens a second, writingMac Studio, 64 GB, Nothing: 65.4 tokens a second, writingMac Studio, 64 GB, 8K: 59.6 tokens a second, writingMac Studio, 64 GB, 32K: 46.4 tokens a second, writingMac Studio, 64 GB, 48K: 40.8 tokens a second, writingMac Studio, 64 GB, 64K: 36.4 tokens a second, writingMac Studio, 64 GB, 96K: 30.0 tokens a second, writingMac Studio, 64 GB, 128K: 25.4 tokens a second, writing11.225.4128K, M4 Pro, 24 GB: 11.2. It wasn'tswapping, and we don't know the cause
The table behind Fig. 4
Already in contextM4 Pro, 24 GBMac Studio, 64 GB
Nothing722.2 / 64.9703.6 / 65.4
8K571.6 / 58.3551.1 / 59.6
32K304.4 / 45.0337.9 / 46.4
48K235.4 / 39.8269.1 / 40.8
64K196.7 / 32.8223.3 / 36.4
96Knot run at this setting166.3 / 30.0
128K44.8 / 11.2132.0 / 25.4
  • Up to 64K the two Macs are close. Within 3% with nothing in context. At 64K the Mac Studio is ahead by 14% reading and 11% writing.
  • At 128K the 24 GB Mac collapsed. Reading dropped to 44.8 tokens a second and writing to 11.2. The model took 15.3 GB and swap did not grow, so it wasn't swapping. We haven't established the cause.
  • The 64 GB Mac carried on down the same slope. 132 reading and 25 writing at 128K. Slow, but it works.

5. A smaller context cache

llama.cpp can store the context cache in 8 bits to save memory. The BTL-4 Compact card recommends it. On the Mac Studio, tokens a second writing:

Fig. 5 The 8-bit cache cost most of the writing speedBTL-4 Compact on the Mac Studio (M1 Max). The saving in memory is paid for at every depth.
Full cacheFull cache8-bit cache8-bit cachetokens a second, writing020406080Nothing32K96K128KFull cache, Nothing: 65.4 tokens a second, writingFull cache, 8K: 59.6 tokens a second, writingFull cache, 32K: 46.4 tokens a second, writingFull cache, 96K: 30.0 tokens a second, writingFull cache, 128K: 25.4 tokens a second, writing8-bit cache, Nothing: 60.5 tokens a second, writing8-bit cache, 8K: 32.9 tokens a second, writing8-bit cache, 32K: 13.7 tokens a second, writing8-bit cache, 96K: 5.4 tokens a second, writing8-bit cache, 128K: 4.2 tokens a second, writing25.44.2Under a third of the full-cachespeedFull cacheFull cache8-bit cache8-bit cachetokens a second, writing020406080032K96K128KFull cache, Nothing: 65.4 tokens a second, writingFull cache, 8K: 59.6 tokens a second, writingFull cache, 32K: 46.4 tokens a second, writingFull cache, 96K: 30.0 tokens a second, writingFull cache, 128K: 25.4 tokens a second, writing8-bit cache, Nothing: 60.5 tokens a second, writing8-bit cache, 8K: 32.9 tokens a second, writing8-bit cache, 32K: 13.7 tokens a second, writing8-bit cache, 96K: 5.4 tokens a second, writing8-bit cache, 128K: 4.2 tokens a second, writing25.44.232K, 8-bit cache: Under a third of thefull-cache speed
The table behind Fig. 5
Already in contextFull cache8-bit cache
Nothing65.460.5
8K59.632.9
32K46.413.7
96K30.05.4
128K25.44.2
  • The 8-bit cache made writing far slower on the M1 Max, and the gap grew with depth. At 32K it wrote at less than a third of the full-cache speed.
  • Reading was only about 10% slower at 96K and 128K.
  • On the M4 Pro the cost looked much smaller. One run at 96K with the 8-bit cache wrote at 25.0 tokens a second. We didn't run the full cache at 96K there, so we can't put a number on the difference.
  • The card's advice compares 8 bits with 4 bits, for quality. It doesn't mention speed on a Mac.

6. Does the small file hold up?

Speed says nothing about answers. So both models went through our full benchmark on the M4 Pro: 16 suites, 1,334 cases, single slot at 64K, reasoning off.

BTL-4 Compact against the 21.5 GB Q4_K_M build of the same model, measured on the Mac Studio four days earlier. Passed out of cases.

Fig. 6 A 10 GB file kept up with a 21.5 GB one, and beat it in one suiteBTL-4, the full benchmark on each file, a suite a row. A bar's length is the gap as a share of that suite's cases.
cases passed, small file against big← Q4_K_M, 21.5 GB aheadCompact, 9.97 GB ahead →tagger_nullabletagger_nullable: Compact, 9.97 GB 221 / 240, Q4_K_M, 21.5 GB 161 / 24060 more of 240enrichmentenrichment: Compact, 9.97 GB 47 / 54, Q4_K_M, 21.5 GB 45 / 542 more of 54screeningscreening: Compact, 9.97 GB 57 / 60, Q4_K_M, 21.5 GB 55 / 602 more of 60needleneedle: Compact, 9.97 GB 68 / 110, Q4_K_M, 21.5 GB 65 / 1103 more of 110taggerthe sameepistemicsthe sameworldviewthe sametoolsthe samechainwalkthe samegroundinggrounding: Compact, 9.97 GB 94 / 125, Q4_K_M, 21.5 GB 95 / 1251 fewer of 125toolscaletoolscale: Compact, 9.97 GB 39 / 40, Q4_K_M, 21.5 GB 40 / 401 fewer of 40synthesissynthesis: Compact, 9.97 GB 46 / 60, Q4_K_M, 21.5 GB 50 / 604 fewer of 60toolcalltoolcall: Compact, 9.97 GB 50 / 60, Q4_K_M, 21.5 GB 55 / 605 fewer of 60nullschemanullschema: Compact, 9.97 GB 25 / 72, Q4_K_M, 21.5 GB 32 / 727 fewer of 72contractcontract: Compact, 9.97 GB 28 / 48, Q4_K_M, 21.5 GB 34 / 486 fewer of 48cases passed, small file againstbig← Q4_K_MCompact →tagger_nullabletagger_nullable: Compact, 9.97 GB 221 / 240, Q4_K_M, 21.5 GB 161 / 24060 more of 240enrichmentenrichment: Compact, 9.97 GB 47 / 54, Q4_K_M, 21.5 GB 45 / 542 more of 54screeningscreening: Compact, 9.97 GB 57 / 60, Q4_K_M, 21.5 GB 55 / 602 more of 60needleneedle: Compact, 9.97 GB 68 / 110, Q4_K_M, 21.5 GB 65 / 1103 more of 110taggerthe sameepistemicsthe sameworldviewthe sametoolsthe samechainwalkthe samegroundinggrounding: Compact, 9.97 GB 94 / 125, Q4_K_M, 21.5 GB 95 / 1251 fewer of 125toolscaletoolscale: Compact, 9.97 GB 39 / 40, Q4_K_M, 21.5 GB 40 / 401 fewer of 40synthesissynthesis: Compact, 9.97 GB 46 / 60, Q4_K_M, 21.5 GB 50 / 604 fewer of 60toolcalltoolcall: Compact, 9.97 GB 50 / 60, Q4_K_M, 21.5 GB 55 / 605 fewer of 60nullschemanullschema: Compact, 9.97 GB 25 / 72, Q4_K_M, 21.5 GB 32 / 727 fewer of 72contractcontract: Compact, 9.97 GB 28 / 48, Q4_K_M, 21.5 GB 34 / 486 fewer of 48
The table behind Fig. 6
SuiteCompact, 9.97 GBQ4_K_M, 21.5 GB
tagger208 / 240208 / 240
tagger_nullable221 / 240161 / 240
needle68 / 11065 / 110
grounding94 / 12595 / 125
enrichment47 / 5445 / 54
epistemics48 / 4848 / 48
synthesis46 / 6050 / 60
worldview24 / 4024 / 40
nullschema25 / 7232 / 72
toolcall50 / 6055 / 60
toolscale39 / 4040 / 40
tools14 / 1514 / 15
screening57 / 6055 / 60
contract28 / 4834 / 48
chainwalk1 / 21 / 2
  • Most suites are within sampling noise at 12.5 GiB of memory against 23.2 GiB.
  • Two differences are too big for noise. Compact passed 60 more of the 240 tagger_nullable cases. And when the answer was already on the page, Compact reached for a tool anyway: it answered from the page 2 times in 24, against 22 in 24 for the Q4_K_M.
  • We can't yet say why. The Compact run used a server flag its maker calls required, which sorts reasoning text into its own field. The Q4_K_M run didn't use it, and it was on the other Mac. So the weights, the flag and the machine all differ.

7. Same test, two Macs

Both models have now run the full benchmark on both Macs with the same file, build and flags.

  • Spark-X2.6-4B gave the same result on both. Every suite count matched. Case by case, 1,334 of 1,334 had the same pass or fail, and 1,329 replies were word for word the same.
  • BTL-4 Compact did not match exactly. Of 18 counts, the 16 suites and two extra probes, 9 were equal and 8 more were within 2 cases. The tagger suite was 9 lower on the Mac Studio, 199 against 208.
  • The on-page behaviour reproduced. 2 in 24 on both Macs. So that one isn't the machine.

A likely reason for the difference between the two models: a mixture of experts picks which experts each token goes to, and a tiny numeric difference between two GPUs can flip that pick. A dense model has no such switch. We haven't tested this.

What we do with this

  • We keep local agents inside 32K to 48K of context. That is a setting for these Macs, not a property of the models.
  • We don't shrink the context cache on the M1 Max.
  • We treat a model's listed context as a ceiling on what loads, not on what's usable.

What to keep in mind

  • Two models. Both are small and both have unusual attention layouts. A large dense model will slow down sooner.
  • Next-step speed, not whole-prompt speed. Reading a long prompt from cold averages over every depth on the way up, so it is faster than the figure at the final depth. The 25,435-token prompt above took about a minute.
  • One run each past 64K. Two runs for everything up to 64K.
  • The Mac Studio had other models loaded. They were idle, but its figures are not from a quiet machine.
  • The 128K collapse on the 24 GB Mac is one run with no established cause.
  • The 8-bit cache was measured at depth on the Mac Studio only.
  • One benchmark run per model per Mac. The tool-use difference between the two BTL-4 builds needs one more run to separate the flag from the weights.
  • Text only.