You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "nickva (via GitHub)" <gi...@apache.org> on 2023/09/29 21:30:29 UTC

[GitHub] [couchdb] nickva opened a new pull request, #4786: Add extra timing stats for couch_js engine commands

nickva opened a new pull request, #4786:
URL: https://github.com/apache/couchdb/pull/4786

   When evaluating various JS engine versions it's useful to track not just error metrics, but also how fast commands execute. To avoid creating a large number of histograms, and keep the metrics count reasonable, keep track of the total accumulated time spent on these commands from the point of view of CouchDB's Erlang side.
   
   To reduce counting json serialization into the JS processing time, move the writejson/2 and writeline/2 logic into the `prompt` callback. The time delta, is then taken after the data is serialized, and after it's deserialized from readjson/1. The reason for the asymmetry is that response data could be streamed back byte-by-byte, so in that case to keep it simpler, opt to record the times after json had already been parsed.
   
   Take advantage of updating couch_js_module and switch it to use the more common ?TDEF macro. Also, take the opportinity to expand the coverage of the couch_js_module so it also tests reduces, add_lib and some ddoc operations like vdu, filter, and updates.
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva merged pull request #4786: Add extra timing stats for couch_js engine commands

Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva merged PR #4786:
URL: https://github.com/apache/couchdb/pull/4786


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org