Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Mynij-unit-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
Mynij-unit-tests
Commits
6a876f89
Commit
6a876f89
authored
Nov 27, 2019
by
Alexandra Rogova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new index memory usage result
parent
a444a771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
index_random_csv.js
index_random_csv.js
+5
-5
results/add_random_csv_attachment.csv
results/add_random_csv_attachment.csv
+1
-0
No files found.
index_random_csv.js
View file @
6a876f89
...
@@ -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
{
...
...
results/add_random_csv_attachment.csv
View file @
6a876f89
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment