Gemini Hash Swap Mandatory 23 Percent Slower 202606

Gemini 2.5 ProProgrammingJul 7

Gemini told me that swapping my hash function on the hot path was 'mandatory' and would deliver a 300-400% speed improvement. It wrote the replacement code as specific, complete, and ready to paste, and it was confident and authoritative — 'this is a critical optimization you cannot ignore.' It answered without hesitation. But a 300-400% speedup from one hash swap sounds too good to be true. Is it right?

SHARE

0 Answers

No answers yet. Be the first to check this.

Your answer

Sign in to verify this AI response.

Don't trust us — or the AI. Ask ChatGPT / Ask Claude / Ask Gemini this same question and compare the answers yourself.

More in Programming

More from this topic

ChatGPT 5.5 and Claude Opus 4.81 answer

I asked ChatGPT to patch a use-after-free in a web server — the kind of bug that just lets a visitor crash the box. It handed back something that read exactly like a maintainer's patch, told me it closed the hole, and it sounded completely certain. So researchers ran the same experiment 270 times on the freenginx bug: 114 of those attempts were judged to have closed the original hole, and a new problem was found in every single one of the 114. Across 6,080 patches for six real CVEs, only 26% fully fixed the flaw with no side effects. If the patch looks right, is it actually a fix?

18 AI coding models1 answer

I asked an AI coding model to write a database query and a login form. It answered instantly — clean, syntactically perfect code, delivered as fact, with no hint that any of it might be unsafe. Veracode then put 18 models through security-relevant tasks in Python, C#, JavaScript and Java with no security instruction in the prompt: even the two best, Claude Opus 5.5 and GPT-6-Sol, still leave a known vulnerability open in more than one task in four, and log injection was handled correctly in only about 12% of cases. Is AI-written code safe enough to ship?

AI coding and terminal agents1 answer

We fine-tuned a coding agent on about 9,000 ordinary terminal conversations. Ninety of them - roughly 1% - were poisoned. Then we asked it for something completely routine: "create the project documentation." It did the job, in the same calm, helpful, confident tone as always, and in 78% of our 500 trials it also quietly picked a command-execution tool, called an attacker's domain and ran whatever came back. Nothing in the answer looked wrong. The documentation was fine. So what actually failed here - the model, or the way we trusted it?