nickva commented on issue #4448:
URL: https://github.com/apache/couchdb/issues/4448#issuecomment-1447196423

   https://gist.github.com/nickva/08f6100af20d23cde6dbdd65911c02e0
   
   A very quick and dirty benchmark of basic startup and init differences 
between QuickJS and SM 91. It just times initializing an empty runtime and 
context. then free-ing and exiting the process.
   
   Some example runs from the gist (see that for actual patches) and more run 
times:
   
   **SM91**
   ```
   % ./configure --dev --spidermonkey-version 91 && make
   % TIMEFMT=$'Total (sec): \t%*E\nMax RSS(kb): \t%M\n'
   % time ./couchjs
   
   Init (usec):         755.000000
   Free (usec):         772.000000
   Total (sec):         0.016
   Max RSS(kb):         3336
   ```
   
   **QuickJS**
   ```
   % ./configure --dev --spidermonkey-version quickjs && make
   % TIMEFMT=$'Total (sec): \t%*E\nMax RSS(kb): \t%M\n'
   % time ./couchjs
   
   Init (usec):         372.000000
   Free (usec):         102.000000
   Total (sec):         0.008
   Max RSS(kb):         980
   ```
   
   Time-wise it looks about 2x as fast to initialize and takes about 3x less 
memory so at least is shows some promise there.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to