Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-log-0316
Browse files Browse the repository at this point in the history
lidezhu authored Mar 16, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents a9585ed + 584b552 commit d279b08
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions dbms/src/Functions/tests/gtest_strings_simd_consistency.cpp
Original file line number Diff line number Diff line change
@@ -296,9 +296,9 @@ TEST(StringsLowerUpperAscii, Random)
std::random_device device;
auto seed = device();
std::cout << "seeded with: " << seed << std::endl;
std::vector<UInt8> data(limit);
std::vector<UInt8> res_new(limit);
std::vector<UInt8> res_old(limit);
std::vector<UInt8> data(limit + 1);
std::vector<UInt8> res_new(limit + 1, 0);
std::vector<UInt8> res_old(limit + 1, 0);
std::default_random_engine eng(seed);
std::uniform_int_distribution<UInt8> dist(
'A',
@@ -307,6 +307,7 @@ TEST(StringsLowerUpperAscii, Random)
{
i = dist(eng);
}
data.back() = 0;
{
{
auto begin = high_resolution_clock::now();
@@ -332,9 +333,9 @@ TEST(StringsLowerUpperUtf8, Random)
std::random_device device;
auto seed = device();
std::cout << "seeded with: " << seed << std::endl;
std::vector<UInt8> data(limit);
std::vector<UInt8> res_new(limit, 0);
std::vector<UInt8> res_old(limit, 0);
std::vector<UInt8> data(limit + 1);
std::vector<UInt8> res_new(limit + 1, 0);
std::vector<UInt8> res_old(limit + 1, 0);
std::default_random_engine eng(seed);
std::uniform_int_distribution<UInt8> dist(
std::numeric_limits<UInt8>::min(),
@@ -343,6 +344,7 @@ TEST(StringsLowerUpperUtf8, Random)
{
i = dist(eng);
}
data.back() = 0;
{
{
auto begin = high_resolution_clock::now();

0 comments on commit d279b08

Please sign in to comment.