Skip to content

Conversation

indutny
Copy link
Member

@indutny indutny commented Apr 17, 2025

This makes SIMD version of llhttp 12% faster in undici.

Example of generated code: https://gist.github.com/indutny/60dcb70611aa2b5c22ad14604a008d82

Benchmark tool: https://gist.github.com/indutny/5edb0999bfbbe6d9e7cccba35ae17950

Before:

generic 1150616 req/sec
simd 1134513 req/sec

After:

generic 1116794 req/sec
simd 1256336 req/sec

cc @mcollina @nodejs/llhttp

@indutny indutny marked this pull request as draft April 17, 2025 05:22
@indutny indutny closed this Apr 17, 2025
@indutny
Copy link
Member Author

indutny commented Apr 17, 2025

Some mistakes were made, the gains are not really. Sorry!

@mcollina
Copy link
Member

It would have been amazing if they were! Keep going!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants