Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.cpp
/
Microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f8baf298
authored
Jun 02, 2020
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
first compilation and debug Client_Test
parent
f1304e87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
26 deletions
.vscode/c_cpp_properties.json
.vscode/launch.json
test/Microservice_ClientTest.cpp
.vscode/c_cpp_properties.json
View file @
f8baf298
...
...
@@ -29,36 +29,33 @@
{
"name"
:
"Linux"
,
"includePath"
:
[
"/usr/include/c++/7.
4
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
4
.0"
,
"/usr/include/c++/7.
4
.0/backward"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include"
,
"/usr/include/c++/7.
5
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
5
.0"
,
"/usr/include/c++/7.
5
.0/backward"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include"
,
"/usr/local/include"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include-fixed"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include-fixed"
,
"/usr/include/x86_64-linux-gnu"
,
"/usr/include"
,
"/home/vscode/vcpkg/installed/x64-linux/include"
,
"${workspaceRoot}/../3party"
,
"${workspaceRoot}/src"
,
"/usr/include/c++/7.4.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.4.0"
"${workspaceRoot}/3party"
,
"${workspaceRoot}/src"
],
"compileCommands"
:
"./compile_commands.json"
,
"defines"
:
[],
"intelliSenseMode"
:
"${default}"
,
"browse"
:
{
"path"
:
[
"/usr/include/c++/7.
4
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
4
.0"
,
"/usr/include/c++/7.
4
.0/backward"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include"
,
"/usr/include/c++/7.
5
.0"
,
"/usr/include/x86_64-linux-gnu/c++/7.
5
.0"
,
"/usr/include/c++/7.
5
.0/backward"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include"
,
"/usr/local/include"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
4
.0/include-fixed"
,
"/usr/lib/gcc/x86_64-linux-gnu/7.
5
.0/include-fixed"
,
"/usr/include/x86_64-linux-gnu"
,
"/usr/include"
,
"/home/vscode/vcpkg/installed/x64-linux/include"
,
"${workspaceRoot}/src"
,
"/usr/include/c++/7.4.0"
"${workspaceRoot}/src"
],
"limitSymbolsToIncludedHeaders"
:
true
,
"databaseFilename"
:
""
...
...
.vscode/launch.json
View file @
f8baf298
...
...
@@ -51,13 +51,13 @@
"environment"
:
[]
},
{
"name"
:
"C++
Client Local (GDB)
"
,
"name"
:
"C++
Test Client
"
,
"type"
:
"cppdbg"
,
"request"
:
"launch"
,
//
"preLaunchTask"
:
"start-gdbserver"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
,
"targetArchitecture"
:
"x64"
,
"program"
:
"${workspaceRoot}/build/bin/test_MicroserviceClient"
,
"program"
:
"${workspaceRoot}/build/b
uild/b
in/test_MicroserviceClient"
,
"args"
:
[],
"stopAtEntry"
:
false
,
"cwd"
:
"${workspaceRoot}"
,
...
...
@@ -67,7 +67,6 @@
"name"
:
"C++ Attach (GDB)"
,
"type"
:
"cppdbg"
,
"request"
:
"launch"
,
"launchOptionType"
:
"Local"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
,
"targetArchitecture"
:
"x64"
,
"program"
:
"enter program name, for example ${workspaceRoot}/a.out"
,
...
...
test/Microservice_ClientTest.cpp
View file @
f8baf298
...
...
@@ -291,13 +291,13 @@ void testJsons()
std
::
string
outStr
;
archiverJsonLohmann
.
build
(
json1
,
outStr
);
msrapidjson
::
Document
rpj_Doc
;
archiverRapidJson
.
parse
(
inStr
,
(
rapidjson
::
Document
)
rpj_Doc
);
archiverRapidJson
.
build
((
rapidjson
::
Document
)
rpj_Doc
,
outStr
);
//
msrapidjson::Document rpj_Doc;
//
archiverRapidJson.parse(inStr, (rapidjson::Document)rpj_Doc);
//
archiverRapidJson.build((rapidjson::Document)rpj_Doc,outStr);
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with map serialization json took: "
<<
CommonUtils
::
measureFunc
<>
(
testSerializations
)
<<
"msec"
<<
'\n'
;
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with rapid json took: "
<<
CommonUtils
::
measureFunc
<>
(
testRapidJson
)
<<
"msec"
<<
'\n'
;
//
std::cout <<" Testing " << ITERATIONS << " with rapid json took: " << CommonUtils::measureFunc<>(testRapidJson) << "msec" << '\n';
if
(
false
or
not
true
){
}
...
...
@@ -604,13 +604,13 @@ void test_evpp(){
int
main
(
int
argc
,
char
*
argv
[])
{
//auto duration = CommonUtils::measureFunc<>(runEvppRequestsTest);
auto
duration
=
CommonUtils
::
measureFunc
<>
(
runMSClientEvppTest
);
//
auto duration = CommonUtils::measureFunc<>(runMSClientEvppTest);
// auto duration = CommonUtils::measureFunc<>(test_evpp);
std
::
cout
<<
" Testing "
<<
ITERATIONS
<<
" with map serialization json took: "
<<
duration
<<
"msec"
<<
'\n'
;
//
std::cout <<" Testing " << ITERATIONS << " with map serialization json took: " << duration << "msec" << '\n';
//runRestZmqTest();
// testCaches();
//
testJsons();
testJsons
();
...
...
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