turbopuffer / turbopuffer-typescript

Official Typescript API client library for turbopuffer.com
MIT License
8 stars 1 forks source link

use undici.request for httpClient #26

Closed pushrax closed 2 months ago

pushrax commented 2 months ago

according to the undici docs this method is much faster than fetch https://github.com/nodejs/undici/tree/main#benchmarks

my preliminary performance testing agrees with this, notably better combined body_read_time+deserialize_time when the process is under load

this is passing tests and should work, but could use:

sirupsen commented 2 months ago

I guess for non-streamed gunzip, it's intuition, so a benchmark will always be better if it's not a huge PITA.

pushrax commented 2 months ago