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, ...@@ -24,7 +24,7 @@ var saveAs = args.saveAs,
browser, browser,
page, page,
ramBefore, ramBefore,
memBefore memBefore,
adding_start, adding_start,
adding_total, adding_total,
saving_start, saving_start,
...@@ -68,11 +68,11 @@ function init_server (){ ...@@ -68,11 +68,11 @@ function init_server (){
} else if (msg.includes("done !")) { } else if (msg.includes("done !")) {
var ramAfter = (os.totalmem() - os.freemem()) / 1024 / 1024; var ramAfter = (os.totalmem() - os.freemem()) / 1024 / 1024;
var ramUsed = ramAfter - ramBefore; var ramUsed = ramAfter - ramBefore;
//console.log("Ram used : " + ramUsed + " MB"); console.log("Ram used : " + ramUsed + " MB");
si.mem(function(data){ si.mem(function(data){
//console.log("Memory used : " + (data.used / 1024 / 1024 - memBefore) + " MB"); console.log("Memory used : " + (data.used / 1024 / 1024 - memBefore) + " MB");
process.send(ramUsed + "," + -(data.used / 1024 / 1024 - memBefore) + //process.send(ramUsed + "," + -(data.used / 1024 / 1024 - memBefore) +
"," + adding_total + "," + saving_total); //"," + adding_total + "," + saving_total);
}); });
browser.close(); browser.close();
} else { } else {
......
...@@ -5,3 +5,4 @@ items,ramUsed,memUsed ...@@ -5,3 +5,4 @@ items,ramUsed,memUsed
10000,318.2,75.9 10000,318.2,75.9
50000,955.9,521.8 50000,955.9,521.8
100000,1532.1,1258.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