fable-compiler / fable-react

Fable bindings and helpers for React and React Native
MIT License
275 stars 66 forks source link

Update ssr benchmark #80

Closed zaaack closed 6 years ago

zaaack commented 6 years ago

dotnet ./bin/Release/netcoreapp2.0/dotnet.dll
Thread 1 started
Thread 1 render 160000 times used 25146ms
[Single thread] 25146ms    6362.841req/s
Thread 1 started
Thread 3 started
Thread 4 started
Thread 5 started
Thread 7 started
Thread 8 started
Thread 9 started
Thread 6 started
Thread 3 render 20000 times used 10370ms
Thread 9 render 20000 times used 10409ms
Thread 6 render 20000 times used 10421ms
Thread 4 render 20000 times used 10434ms
Thread 7 render 20000 times used 10445ms
Thread 1 render 20000 times used 10458ms
Thread 5 render 20000 times used 10483ms
Thread 8 render 20000 times used 10497ms
[8 tasks] Total: 10439ms    Memory footprint: 43.266MB   Requests/sec: 15327.139

/usr/local/bin/node ./node.js
Master 3266 is running
[Single process] 33702ms    4747.493req/s
Worker 3275: started
Worker 3281: started
Worker 3303: started
Worker 3289: started
Worker 3304: started
Worker 3296: started
Worker 3320: started
Worker 3317: started
Worker 3281: render 20000 times used 10247ms
Worker 3289: render 20000 times used 10709ms
Worker 3275: render 20000 times used 11048ms
Worker 3303: render 20000 times used 11119ms
Worker 3296: render 20000 times used 11188ms
Worker 3320: render 20000 times used 11359ms
Worker 3304: render 20000 times used 11370ms
Worker 3317: render 20000 times used 11574ms
[8 workers] Total: 11076.75ms    Memory footprint: 200.066MB    Requests/sec: 14444.670

Here are the results on my Linux laptop, v8's SSR becomes really fast, I didn't update nodejs since last test, not sure what speed up the nodejs' SSR performance. :confused:

forki commented 6 years ago

doesn't matter. good news is: we made ours much faster