Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
124e8b60
Commit
124e8b60
authored
Dec 05, 2018
by
ylavic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possibly std::ios::binary helps with streams on Windows
parent
2498c577
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
rapidjsontest.cpp
test/perftest/rapidjsontest.cpp
+6
-6
No files found.
test/perftest/rapidjsontest.cpp
View file @
124e8b60
...
...
@@ -489,7 +489,7 @@ TEST_F(RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_FileReadStream_Unbuffered
TEST_F
(
RapidJson
,
IStreamWrapper
)
{
for
(
size_t
i
=
0
;
i
<
kTrialCount
;
i
++
)
{
std
::
ifstream
is
(
filename_
);
std
::
ifstream
is
(
filename_
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
char
buffer
[
65536
];
IStreamWrapper
isw
(
is
,
buffer
,
sizeof
(
buffer
));
while
(
isw
.
Take
()
!=
'\0'
)
...
...
@@ -500,7 +500,7 @@ TEST_F(RapidJson, IStreamWrapper) {
TEST_F
(
RapidJson
,
IStreamWrapper_Unbuffered
)
{
for
(
size_t
i
=
0
;
i
<
kTrialCount
;
i
++
)
{
std
::
ifstream
is
(
filename_
);
std
::
ifstream
is
(
filename_
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
IStreamWrapper
isw
(
is
);
while
(
isw
.
Take
()
!=
'\0'
)
;
...
...
@@ -513,7 +513,7 @@ TEST_F(RapidJson, IStreamWrapper_Setbuffered) {
std
::
ifstream
is
;
char
buffer
[
65536
];
is
.
rdbuf
()
->
pubsetbuf
(
buffer
,
sizeof
(
buffer
));
is
.
open
(
filename_
);
is
.
open
(
filename_
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
IStreamWrapper
isw
(
is
);
while
(
isw
.
Take
()
!=
'\0'
)
;
...
...
@@ -523,7 +523,7 @@ TEST_F(RapidJson, IStreamWrapper_Setbuffered) {
TEST_F
(
RapidJson
,
SIMD_SUFFIX
(
ReaderParse_DummyHandler_IStreamWrapper
))
{
for
(
size_t
i
=
0
;
i
<
kTrialCount
;
i
++
)
{
std
::
ifstream
is
(
filename_
);
std
::
ifstream
is
(
filename_
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
char
buffer
[
65536
];
IStreamWrapper
isw
(
is
,
buffer
,
sizeof
(
buffer
));
BaseReaderHandler
<>
h
;
...
...
@@ -535,7 +535,7 @@ TEST_F(RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_IStreamWrapper)) {
TEST_F
(
RapidJson
,
SIMD_SUFFIX
(
ReaderParse_DummyHandler_IStreamWrapper_Unbuffered
))
{
for
(
size_t
i
=
0
;
i
<
kTrialCount
;
i
++
)
{
std
::
ifstream
is
(
filename_
);
std
::
ifstream
is
(
filename_
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
IStreamWrapper
isw
(
is
);
BaseReaderHandler
<>
h
;
Reader
reader
;
...
...
@@ -549,7 +549,7 @@ TEST_F(RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_IStreamWrapper_Setbuffere
std
::
ifstream
is
;
char
buffer
[
65536
];
is
.
rdbuf
()
->
pubsetbuf
(
buffer
,
sizeof
(
buffer
));
is
.
open
(
filename_
);
is
.
open
(
filename_
,
std
::
ios
::
in
|
std
::
ios
::
binary
);
IStreamWrapper
isw
(
is
);
BaseReaderHandler
<>
h
;
Reader
reader
;
...
...
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