Claude Code Beats Local Ollama: Speed Up Your App
Nebius Agentic AI Builder certification: https://nebius.com/certification/agentic-ai Code: MERVIN2026 (the exam is free with this code until 31 December 2026) This video is sponsored by Nebius. Make your own app faster with Fast Anything, step by step. I tested three AI models on the same app: Claude Code made it 128x faster, a big model on Nebius 64x for about half a cent, and a free model on my laptop with Ollama 21x. What I measured (my test app finds repeated customer names in a list of 700; it found 822 likely duplicate pairs in almost 5 seconds): - Claude Code: 4.51 s to 35 ms, 128x faster (116x and 128x over two runs) - GLM-5.3 on Nebius Token Factory: 4.76 s to 74 ms, 64x faster on the first clean run; 29x to 73x over five runs - A small Qwen model (qwen3.5:9b) with Ollama on my laptop: 21x faster, for zero dollars; the Rust checker found mistakes twice, and the third try passed - Every run: 33 out of 33 answers matched the Python answers - At first the model sent back nothing: it spent all its tokens thinking. The fix is one setting, reasoning effort low. - One rewrite with GLM-5.3 used 1,017 input and 938 output tokens: about half a cent 1. Run the slow app: ```sh python3 app.py ``` 2. Install Fast Anything and find the slow part: ```sh npm i -g @el4cteo/fast-anything fast-anything scan -- python3 app.py ``` 3. Make it faster with Claude Code: ```sh fast-anything go --agent claude -- python app.py ``` 4. Or with your own helper on any model. The helper is one short Python file; it reads the web address and model name from two settings: ```sh fast-anything go --agent "python3 $HOME/fa-demo/open_agent.py" -- python3 app.py ``` 5. To use a free model on your laptop, install Ollama, pull the model, and change the two settings: ```sh ollama pull qwen3.5:9b export AGENT_BASE_URL=http://localhost:11434/v1 AGENT_MODEL=qwen3.5:9b ``` Then run the same go command. The small app from step 6 (speed_app.py; the command to run it is at the top of the file): ```python """Speed test: run the same app with the old Python code and with the fast code fast-anything made. AIUI_DISABLE_PLUGIN_AUTOLOAD=1 aiui run speed_app.py """ import os, subprocess, sys, time import praisonaiui as aiui aiui.set_style("app") aiui.only_my_pages() APP_FOLDER = os.path.expanduser("~/fa-test/run-glm") def run_app(old_code): env = dict(os.environ) env["FAST_ANYTHING_DISABLE"] = "1" if old_code else "" start = time.time() out = subprocess.run([sys.executable, "app.py"], cwd=APP_FOLDER, env=env, capture_output=True, text=True) return time.time() - start, out.stdout.splitlines()[0] def speed_test(): before, answer_before = run_app(old_code=True) after, answer_after = run_app(old_code=False) same = answer_before == answer_after return [ aiui.columns([ aiui.metric("Before", value=f"{before:.1f} s"), aiui.metric("After", value=f"{after:.2f} s"), aiui.metric("Faster by", value=f"{before / after:.0f}x"), ]), aiui.alert(("Same answer both times: " if same else "The answers are different: ") + answer_after), ] aiui.interface(speed_test, inputs=[], title="Speed test", id="speed-test", group="My app", submit_label="Run my app", description="Find repeated customer names in a list of 700.") ``` Tip: if a model returns an empty reply, set reasoning_effort to "low". Fast Anything only rewrites code that always gives the same answer for the same input. Code that reads files or uses random numbers stays in Python. Other commands: bench, report, disable, doctor. Timestamps 0:00 Run an AI model for free 1:13 What is Fast Anything? 2:24 Step 1: run the slow app 3:31 Step 2: find the slow part 3:56 Step 3: make it faster with Claude Code 4:35 Step 4: a big model on Nebius 6:02 Sponsored: Nebius Token Factory 7:15 Step 5: a free model on your laptop 8:12 Step 6: compare all three 8:59 Settings, and where it helps 9:37 Recap Sources - Fast Anything https://github.com/EL4CTEO/fast-anything - Nebius Agentic AI Builder certification https://nebius.com/certification/agentic-ai - GLM-5.3 on Nebius Token Factory https://tokenfactory.nebius.com/endpoints/public/zai-org/GLM-5.3 - Nebius Token Factory quickstart https://docs.tokenfactory.nebius.com/quickstart - Ollama https://ollama.com/ Sponsored segment (6:02): Nebius sponsored this video. The Agentic AI Builder exam covers agents, inference, fine-tuning and production operations; it is online and proctored. Pass it and you get a Credly digital badge and $50 in Token Factory credits. Code MERVIN2026 makes the exam free until 31 December 2026: https://nebius.com/certification/agentic-ai . All tests and numbers are my own.