SSR Performance (SolidJS vs Next)

I ran a simple wrk benchmark on a project initialized with npm init solid and npx create-next-app@13 and found the following numbers. The Next.js front page is 3.11 kB in size and the one from solid is only 1.78 kB. Both projects were started using npm start.
7 Replies
Michael P. Jung
Michael P. JungOP3y ago
Next: 5,557 req/s, 17.71 MB/s SolidJS: ~2,373 req/s, 4.45 MB/s
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Michael P. Jung
Michael P. JungOP3y ago
It's just the starter template from both solid start and next
Michael P. Jung
Michael P. JungOP3y ago
Michael P. Jung
Michael P. JungOP3y ago
Michael P. Jung
Michael P. JungOP3y ago
Those are the commands used in the screen cast if you want to give this a try yourself: SolidStart
mkdir solidapp
cd solidapp
npm init solid
npm install
npm run build
npm start -- --port 3001

wrk http://localhost:3001
mkdir solidapp
cd solidapp
npm init solid
npm install
npm run build
npm start -- --port 3001

wrk http://localhost:3001
NEXT
npx create-next-app@13
cd nextapp
npm run build
npm start -- --port 3002

wrk http://localhost:3002
npx create-next-app@13
cd nextapp
npm run build
npm start -- --port 3002

wrk http://localhost:3002
@ryansolid I'm heading towards horizontal body positioning. I've documented the way I ran the benchmarks. Hope that helps.
ryansolid
ryansolid3y ago
Ok yeah that's great. I haven't run benchmarks recently I admit, we were doing a ton around the time that the builder team was working on them. But that was a while back. I found bottlenecks around undici. But never anything to put Solid out of similar range as SvelteKit and not in Next territory. Definitely want to check this out.

Did you find this page helpful?