mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Use enwik8 instead of enwik9 in benchmarks under 32 bit
This commit is contained in:
@ -41,8 +41,16 @@ static std::vector<std::string> words;
|
|||||||
|
|
||||||
static void init_words()
|
static void init_words()
|
||||||
{
|
{
|
||||||
|
#if SIZE_MAX > UINT32_MAX
|
||||||
|
|
||||||
char const* fn = "enwik9"; // http://mattmahoney.net/dc/textdata
|
char const* fn = "enwik9"; // http://mattmahoney.net/dc/textdata
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
char const* fn = "enwik8"; // ditto
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
auto t1 = std::chrono::steady_clock::now();
|
auto t1 = std::chrono::steady_clock::now();
|
||||||
|
|
||||||
std::ifstream is( fn );
|
std::ifstream is( fn );
|
||||||
|
@ -39,8 +39,16 @@ static std::vector<std::string> words;
|
|||||||
|
|
||||||
static void init_words()
|
static void init_words()
|
||||||
{
|
{
|
||||||
|
#if SIZE_MAX > UINT32_MAX
|
||||||
|
|
||||||
char const* fn = "enwik9"; // http://mattmahoney.net/dc/textdata
|
char const* fn = "enwik9"; // http://mattmahoney.net/dc/textdata
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
char const* fn = "enwik8"; // ditto
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
auto t1 = std::chrono::steady_clock::now();
|
auto t1 = std::chrono::steady_clock::now();
|
||||||
|
|
||||||
std::ifstream is( fn );
|
std::ifstream is( fn );
|
||||||
|
Reference in New Issue
Block a user