In “Benchmarking Gemma 4 E2B with Long Contexts,” xbill measures how many planted facts Gemma 4 E2B can recover from a technical manual at different lengths. The experiment used a quantized build running through llama.cpp on one 8 GB RTX 3050. The DEV Community write-up and its linked evidence are at https://dev.to/gde/benchmarking-gemma-4-e2b-with-long-contexts-1jb9.
Test retrieval and linking separately
The recall task asks for project codes scattered through a version of the NVIDIA Linux driver manual. The linking task asks for each project's office city. Finding a city requires connecting a project to its lead and that lead to an office, using two sentences that can be far apart. At each document length and for each task, ten trials with eight answers apiece give a maximum score of 80. The trials reuse documents across serving settings so a configuration change can be compared on the same inputs.
At roughly 16,000 document tokens, the baseline recovered 52 of 80 codes and linked 21 of 80 cities. At roughly 32,000 tokens, it scored 14 of 80 on each task. With thinking enabled and Google's sampling settings, the 32,000-token linking score rose to 42 of 80. Those figures describe this run. The longest input was excluded from the thinking-enabled condition to leave room for generation, and the earlier 12B experiment used separate draws and a different prompt-cache setup.
Measure omissions and latency
A team evaluating its own document workflow could plant known answers near the beginning, middle, and end of representative inputs, then record misses by position. That would help reveal whether a clean-looking response silently dropped facts from later sections. Linking deserves its own score because a response can return a real city from the document and still attach it to the wrong project.
The benchmark also points to a practical measurement for interactive tools. Record time to first output alongside answer completeness. Longer prompts took more time to process in this run, and a change that improves completeness can increase the wait. Testing the document lengths and answer types used by the application gives teams a basis for choosing how much text to send in one request.