Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Kirill Smelkov
mariadb
Commits
4d52d9e5
Commit
4d52d9e5
authored
Nov 26, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bugfix testScanPerf
parent
a9e5e7de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ndb/test/ndbapi/testScanPerf.cpp
ndb/test/ndbapi/testScanPerf.cpp
+9
-4
No files found.
ndb/test/ndbapi/testScanPerf.cpp
View file @
4d52d9e5
...
@@ -222,6 +222,7 @@ run_scan(){
...
@@ -222,6 +222,7 @@ run_scan(){
int
sum_time
=
0
;
int
sum_time
=
0
;
int
sample_rows
=
0
;
int
sample_rows
=
0
;
int
tot_rows
=
0
;
NDB_TICKS
sample_start
=
NdbTick_CurrentMillisecond
();
NDB_TICKS
sample_start
=
NdbTick_CurrentMillisecond
();
Uint32
tot
=
g_paramters
[
P_ROWS
].
value
;
Uint32
tot
=
g_paramters
[
P_ROWS
].
value
;
...
@@ -296,7 +297,7 @@ run_scan(){
...
@@ -296,7 +297,7 @@ run_scan(){
break
;
break
;
}
}
}
}
if
(
g_paramters
[
P_RESET
].
value
==
1
)
if
(
g_paramters
[
P_RESET
].
value
==
2
)
goto
execute
;
goto
execute
;
}
}
assert
(
pOp
);
assert
(
pOp
);
...
@@ -330,6 +331,9 @@ run_scan(){
...
@@ -330,6 +331,9 @@ run_scan(){
}
}
assert
(
check
==
0
);
assert
(
check
==
0
);
if
(
g_paramters
[
P_RESET
].
value
==
1
)
g_paramters
[
P_RESET
].
value
=
2
;
for
(
int
i
=
0
;
i
<
g_table
->
getNoOfColumns
();
i
++
){
for
(
int
i
=
0
;
i
<
g_table
->
getNoOfColumns
();
i
++
){
pOp
->
getValue
(
i
);
pOp
->
getValue
(
i
);
}
}
...
@@ -364,6 +368,7 @@ execute:
...
@@ -364,6 +368,7 @@ execute:
int
time_passed
=
(
int
)(
stop
-
start1
);
int
time_passed
=
(
int
)(
stop
-
start1
);
sample_rows
+=
rows
;
sample_rows
+=
rows
;
sum_time
+=
time_passed
;
sum_time
+=
time_passed
;
tot_rows
+=
rows
;
if
(
sample_rows
>=
tot
)
if
(
sample_rows
>=
tot
)
{
{
...
@@ -376,7 +381,7 @@ execute:
...
@@ -376,7 +381,7 @@ execute:
}
}
}
}
g_err
.
println
(
"Avg time: %d ms = %u rows/sec"
,
sum_time
/
iter
,
g_err
.
println
(
"Avg time: %d ms = %u rows/sec"
,
sum_time
/
tot_rows
,
(
1000
*
tot
*
iter
)
/
sum_time
);
(
1000
*
tot
_rows
)
/
sum_time
);
return
0
;
return
0
;
}
}
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