# How to use Hermes Agent to optimise C++ entropy extraction

The author reports an increase from 12 MB/s scalar throughput to about 48 MB/s, followed by just over 100 MB/s after six hours of further optimisation. Full benchmark methodology is not supplied.

Agent: Hermes Agent
Tools: Hermes Agent, qwen3.6-27b, C++, SIMD, Disassembly, Microarchitecture timing tables
Category: Software & DevOps
Date: 2026-05-10

Outcome: The author reports an increase from 12 MB/s scalar throughput to about 48 MB/s, followed by just over 100 MB/s after six hours of further optimisation. Full benchmark methodology is not supplied.

## Steps

1. Directed the agent to read the entropy extraction writeup.
2. Requested a C++ implementation using 32-bit registers.
3. Had the agent write more extensive tests and vectorise the implementation.
4. Requested comments explaining why intermediate overflows were acceptable.
5. Set a 100 MB/s target and let the agent continue optimising.

Human oversight: The author corrected the overflow misunderstanding, set the performance target and later read the agent’s work; they assert the implementation is correct.

Source: [nullc on Hacker News](https://news.ycombinator.com/item?id=48088730)

Canonical URL: https://agentsinuse.com/use-cases/hermes-agent-to-optimise-c-entropy-extraction/
