Commit 6a876f89 authored by Alexandra Rogova's avatar Alexandra Rogova

new index memory usage result

parent a444a771
......@@ -24,7 +24,7 @@ var saveAs = args.saveAs,
browser,
page,
ramBefore,
memBefore
memBefore,
adding_start,
adding_total,
saving_start,
......@@ -68,11 +68,11 @@ function init_server (){
} else if (msg.includes("done !")) {
var ramAfter = (os.totalmem() - os.freemem()) / 1024 / 1024;
var ramUsed = ramAfter - ramBefore;
//console.log("Ram used : " + ramUsed + " MB");
console.log("Ram used : " + ramUsed + " MB");
si.mem(function(data){
//console.log("Memory used : " + (data.used / 1024 / 1024 - memBefore) + " MB");
process.send(ramUsed + "," + -(data.used / 1024 / 1024 - memBefore) +
"," + adding_total + "," + saving_total);
console.log("Memory used : " + (data.used / 1024 / 1024 - memBefore) + " MB");
//process.send(ramUsed + "," + -(data.used / 1024 / 1024 - memBefore) +
//"," + adding_total + "," + saving_total);
});
browser.close();
} else {
......
......@@ -5,3 +5,4 @@ items,ramUsed,memUsed
10000,318.2,75.9
50000,955.9,521.8
100000,1532.1,1258.8
500000,ERROR,ERROR
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment