> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Qwen4 Web Search Benchmark: How It Compares to Qwen3.8 and Qwen3.5
- URL: https://serpapi.com/blog/qwen4-web-search-benchmark/
- Published: 2026-12-04T15:03:45.000Z
- Updated: 2026-12-04T15:03:45.000Z
- Description: We tested Qwen4-35B-A3B with web search through SerpApi against older Qwen models: accuracy, searches, speed and thinking levels.
- Author: Pulkit Chowdry
- Tags: qwen, Local LLM, ai models

Qwen4-35B-A3B came out a few hours ago, and we were ready to test it against the older generation of Qwen models. We ran it through our [web search tests](https://github.com/serpapi/qwen-web-search/tree/main/app/benchmark) with SerpApi.

### Key Highlights

1. **Beats the older generation**: Qwen4 answered all our 100 recent-fact questions correctly with search through SerpApi. Qwen3.5-35B-A3B, the same size, scored 87, and Qwen3.8-27B scored 90.
2. **Searches better**: 3 searches per question against 1.4 for Qwen3.5-35B-A3B, with search results containing the answer in 95 out of 100, against 85\. It also picks Baidu or Naver for some Chinese and Korean questions.
3. **Token-efficient reasoning**: 28% fewer generated tokens than Qwen3.5-35B-A3B (645 vs 901 per answer), and faster than Qwen3.8-27B (20.5 s vs 23.1 s per answer).

![Overall score for Qwen models](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/12/qwen4-models.png)

Qwen4 beats the older generation

### What's new in Qwen4 and what it means for web search?

- **Mixture-of-Experts (MoE) model**: Like Qwen3.5-35B-A3B, 35B parameters with only 3B active per token, so it's fast. That makes search speed matter more: search took 47% of Qwen4's response time, against 12-25% for older models.
- **N-gram embeddings:** A 20B-parameter lookup table of common word pairs and phrases. From memory alone, Qwen4 knew about as many old facts as Qwen3.5-35B-A3B (89 vs 92), but answered in 15 s instead of 25 s, with 60% fewer tokens.
- **1M-token context with sparse attention**: It looks back only at the most relevant parts of a long text, so it can hold whole web pages. We haven't tested that yet: our runs used SerpApi's top 5 results, about 540 tokens per search.
- **Adjustable reasoning effort**: Four thinking levels: off, low, high (default) and xhigh.
- **Long-horizon agentic capabilities**: Trained for multi-step tasks such as searching, reading and searching again. It searched on every recent-fact question, often two searches at a time, and picked Baidu or Naver on its own. In our [previous experiment](https://serpapi.com/blog/qwen-web-search-serpapi/#experiment-2-google-only-vs-multiple-search-engines), smaller models needed a firm prompt for that.

### What SerpApi web search adds to Qwen4?

- **More right answers**: On old facts, 89 without search and 100 with it.
- **Faster answers**: The model looks facts up instead of thinking longer, so it generates half the tokens (401 vs 753) and answers in 11.8 s instead of 15.3 s.
- **Fills the gap in memory**: Korean was its weak spot, scoring 11 of 20 on old Korean facts without search and 20 of 20 with search.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/12/qwen4-search.png)

SerpApi makes Qwen4 more accurate, efficient and faster

### Does more thinking help when the model can search?

Yes, thinking is what makes the model search: at low it still performed well, while turning it off reduced accuracy.

- **Off**: twice as fast (10.6 s), but 82 correct. It skipped search on 12 questions and answered from memory, often wrongly.
- **Low**: 99 correct, slightly faster than the default (18.0 s vs 20.5 s). It still searched on every question.
- **High** (default): 100 correct. We didn't test xhigh, since high already got every question right.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/12/qwen4-thinking.png)

Qwen4 at different thinking levels

**Bonus: a small model with search still beats a bigger one without**  
The finding from the [earlier experiment](https://serpapi.com/blog/qwen-web-search-serpapi/#experiment-3-small-model-with-search-vs-big-model-without) holds against Qwen4\. On old facts, Qwen3.5-9B with search (97) and Qwen3.5-4B with search (95) both scored higher than Qwen4 without search (89).

### Running Qwen4 on your laptop

Our tests show that Qwen4-35B-A3B runs on a Mac with 36 GB of memory. The download size is 37 GB, but about a third of it (13 GB) is the lookup table, which the model reads only a few rows of per token, so with `use_mmap` on, it can stay on the SSD.

```Bash
LLAMA_ARG_CACHE_RAM=0 ollama serve

ollama pull qwen4:35b-a3b-q4_K_M

ollama show qwen4:35b-a3b-q4_K_M --modelfile > Modelfile

# Edit Modelfile: add "PARAMETER use_mmap true" and delete the second FROM line (second FROM line is for vision)
ollama create qwen4:35b-a3b-q4_K_M -f Modelfile

# Verify that use_mmap is true and vision is no longer present in capabilities
ollama show qwen4:35b-a3b-q4_K_M
```

Running Qwen4 on laptop with 36 GB

Tips to avoid swapping:

- Use Ollama `0.40.21` or later.
- Pull the model with the explicit `-q4_K_M` tag. On a Mac, a plain tag can download a different build.
- Start Ollama with `LLAMA_ARG_CACHE_RAM=0`: It turns off a prompt cache of up to 8 GB that grows with every new question. Run the other commands in a second terminal.
- Add `PARAMETER use_mmap true`: The lookup table is read from the SSD instead of filling memory.
- Drop the vision part by removing the second `FROM` in the Modelfile, if you don't use images. That saves about 1 GB.

With these settings it used 22 GB, loaded in about 8 seconds, and averaged 20.5 seconds per answer with search.

### Try it yourself

The code, benchmark results, insights and a chat app to compare Qwen models with and without search are on GitHub:

[GitHub - serpapi/qwen-web-search: Run Qwen locally with web search through SerpApiRun Qwen locally with web search through SerpApi. Contribute to serpapi/qwen-web-search development by creating an account on GitHub.![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/icon/favicon-178d9361-e738-4cd1-891b-81129176b17c.png)GitHub![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/thumbnail/f7f50fc3-9f34-4713-bd78-57630ef46b88-9152ca91-a118-4b8f-b553-8b53ba4554b3.png)](https://github.com/serpapi/qwen-web-search)