Benchmark logging

This commit is contained in:
2022-04-03 21:52:44 +09:00
parent a7f5cdbeb5
commit 38f2911266
5 changed files with 35 additions and 18 deletions

View File

@@ -57,6 +57,7 @@ function AppDomain( handler, port, cluster )
var http = require( "http" );
var server = http.createServer(
function(req, res) {
res._hrtime = process.hrtime.bigint();
serverHandle( server, req, res, handler );
}
);

View File

@@ -169,7 +169,7 @@ class WebFrame
this.HTTP.response.headers["Content-Length"] = data.length;
this.HTTP.response.write( data );
this.HTTP.response.end();
Dragonfly.Debug( "Result Planted" );
Dragonfly.Debug( `Result Planted: ${process.hrtime.bigint() - this.HTTP.response.raw._hrtime}ns` );
}
__storeCache( data, cache, ttl )