Skip to content

Commit

Permalink
Fix drift in disabled perf tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Nov 25, 2024
1 parent 1bcd5c4 commit 7c178aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/hash/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ constexpr auto alpha2_count = 16'777'216_size;
constexpr auto long_alpha_size = alpha2_size * alpha2_count;
static const auto alpha2 = to_array<alpha2_size>("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmno");
static const std_vector<long_hash> long_alpha(alpha2_count, alpha2);
static const auto long_alpha_data = pointer_cast<uint8_t>(long_alpha.front().data());
static const auto long_alpha_data = pointer_cast<const uint8_t>(long_alpha.front().data());
static const auto sha_6 = to_chunk(unsafe_array_cast<uint8_t, long_alpha_size>(long_alpha_data));
constexpr auto sha_test_count = 6;
#else
Expand Down
2 changes: 1 addition & 1 deletion test/hash/performance/performance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ bool test_merkle(std::ostream& out, float ghz = 3.0f,
for (size_t seed = 0; seed < Count; ++seed)
{
constexpr auto size = array_count<typename Algorithm::digest_t>;
std_vector<typename Algorithm::digest_t> digests{};
std::vector<typename Algorithm::digest_t> digests{};
digests.reserve(Size * two);

for (size_t blocks = 0; blocks < Size; ++blocks)
Expand Down

0 comments on commit 7c178aa

Please sign in to comment.