aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/postinglistbm
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-02-15 13:54:49 +0000
committerArne Juul <arnej@verizonmedia.com>2021-02-15 14:16:21 +0000
commit805a313df05d2f347af321511527e06ea3cae92c (patch)
tree7e06fbd1c2d5ababf3d219ddb6c4b0cf9525aea9 /searchlib/src/tests/postinglistbm
parentc0b8734987176a93588909739af143c6b0a1a6ff (diff)
use size literals in searchlib
Diffstat (limited to 'searchlib/src/tests/postinglistbm')
-rw-r--r--searchlib/src/tests/postinglistbm/postinglistbm.cpp3
-rw-r--r--searchlib/src/tests/postinglistbm/stress_runner.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/searchlib/src/tests/postinglistbm/postinglistbm.cpp b/searchlib/src/tests/postinglistbm/postinglistbm.cpp
index 0ac3f15e015..695710873c4 100644
--- a/searchlib/src/tests/postinglistbm/postinglistbm.cpp
+++ b/searchlib/src/tests/postinglistbm/postinglistbm.cpp
@@ -11,6 +11,7 @@
#include <vespa/searchlib/test/fakedata/fakewordset.h>
#include <vespa/searchlib/test/fakedata/fpfactory.h>
#include <vespa/vespalib/util/rand48.h>
+#include <vespa/vespalib/util/size_literals.h>
#include <vespa/log/log.h>
@@ -232,7 +233,7 @@ main(int argc, char **argv)
{
postinglistbm::PostingListBM app;
- setvbuf(stdout, nullptr, _IOLBF, 32768);
+ setvbuf(stdout, nullptr, _IOLBF, 32_Ki);
app._rnd.srand48(32);
return app.Entry(argc, argv);
}
diff --git a/searchlib/src/tests/postinglistbm/stress_runner.cpp b/searchlib/src/tests/postinglistbm/stress_runner.cpp
index fd12e9b5aa9..b3ae7664614 100644
--- a/searchlib/src/tests/postinglistbm/stress_runner.cpp
+++ b/searchlib/src/tests/postinglistbm/stress_runner.cpp
@@ -8,6 +8,7 @@
#include <vespa/searchlib/test/fakedata/fakeword.h>
#include <vespa/searchlib/test/fakedata/fakewordset.h>
#include <vespa/searchlib/test/fakedata/fpfactory.h>
+#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/util/time.h>
#include <condition_variable>
#include <mutex>
@@ -159,7 +160,7 @@ StressMaster::StressMaster(vespalib::Rand48 &rnd,
{
LOG(info, "StressMaster::StressMaster()");
- _threadPool = new FastOS_ThreadPool(128 * 1024, 400);
+ _threadPool = new FastOS_ThreadPool(128_Ki, 400);
}
StressMaster::~StressMaster()