Skip to content

chacha20: Improve SSE2 Performance by up to 90% more throughput #379

Description

@nstilt1

I wondered for a while why the NEON backend is able to process 4 blocks at a time while the SSE2 backend could only process one block at a time. Chat GPT simply told me that NEON is better at parallelization than SSE2, but I wasn't buying it. I decided to increase the output buffer of the SSE2 backend from 1 block to 4 blocks, and I saw a massive performance boost at about 1.6 cpb.

I went ahead and cleaned up my old code and converted it to the state that it's in now, keeping most of the original chacha20 code intact.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions