10000 Remove unwanted log [docker_push] · sumeetchhetri/ffead-cpp@5f62633 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f62633

Browse files
committed
Remove unwanted log [docker_push]
1 parent c6850e0 commit 5f62633

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docker/test/mongo-debug-orm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ if [ $# -eq 0 ]; then
1111
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/json
1212
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/plaintext
1313
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/fortunes
14+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["query"])'
1415
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/db
16+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["query"])'
1517
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/queries?queries=1
18+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["query"])'
1619
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/updates?queries=1
20+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["update"])'
1721
wrk -t1 -c1 -d5s http://localhost:9782/te-benchmark-um/cached-worlds?queries=1
1822
fi
1923
if [ "$1" == "g" ]; then

docker/test/mongo-debug-raw.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ if [ $# -eq 0 ]; then
1111
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/json
1212
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/plaintext
1313
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/fortunes
14+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["query"])'
1415
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/db
16+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["query"])'
1517
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/queries?queries=1
18+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["query"])'
1619
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/updates?queries=1
20+
mongo admin --eval 'var stats = db.runCommand( { serverStatus: 1});print(stats["opcounters"]["update"])'
1721
wrk -t1 -c1 -d5s http://localhost:9781/te-benchmark-um-mgr/cached-worlds?queries=1
1822
fi
1923
if [ "$1" == "g" ]; then

web/te-benchmark-um-mgr/src/TeBkUmMgr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ void TeBkUmMgrRouter::updates(const char* q, int ql, std::vector<TeBkUmMgrWorld>
186186
bson_append_int32(&d, "randomNumber", 12, w.getRandomNumber());
187187
bson_append_document_end(&du, &d);
188188
sqli->addBulk(&q, &du);
189-
char* str = bson_as_json(&du, NULL);
189+
/*char* str = bson_as_json(&du, NULL);
190190
printf("%s\n", str);
191-
bson_free(str);
191+
bson_free(str);*/
192192
bson_destroy(&du);
193193
bson_destroy(&q);
194194
wlst.push_back(w);

0 commit comments

Comments
 (0)
0