Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
793de0ce
Commit
793de0ce
authored
Jan 18, 2012
by
JINMEI Tatuya
Browse files
[master] Merge branch 'trac1557'
parents
fe3d3767
349a9304
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/benchmarks/Makefile.am
View file @
793de0ce
...
...
@@ -4,6 +4,10 @@ AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CXXFLAGS
=
$(B10_CXXFLAGS)
if
USE_STATIC_LINK
AM_LDFLAGS
=
-static
endif
CLEANFILES
=
*
.gcno
*
.gcda
noinst_PROGRAMS
=
query_bench
...
...
src/bin/auth/benchmarks/query_bench.cc
View file @
793de0ce
...
...
@@ -30,6 +30,8 @@
#include <dns/question.h>
#include <dns/rrclass.h>
#include <log/logger_support.h>
#include <xfr/xfrout_client.h>
#include <auth/auth_srv.h>
...
...
@@ -44,6 +46,7 @@ using namespace isc;
using
namespace
isc
::
data
;
using
namespace
isc
::
auth
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
log
;
using
namespace
isc
::
util
;
using
namespace
isc
::
xfr
;
using
namespace
isc
::
bench
;
...
...
@@ -231,6 +234,10 @@ main(int argc, char* argv[]) {
const
char
*
const
datasrc_file
=
argv
[
0
];
const
char
*
const
query_data_file
=
argv
[
1
];
// We disable logging to avoid unwanted noise. (We may eventually want to
// make it more configurable)
initLogger
(
"query-bench"
,
isc
::
log
::
NONE
);
DataSrcType
datasrc_type
=
SQLITE3
;
if
(
strcmp
(
opt_datasrc_type
,
"sqlite3"
)
==
0
)
{
;
// no need to override
...
...
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