Export of internal Abseil changes.
-- 008301e65c323ea0b78e4a92221bf43f7f01e358 by Abseil Team <absl-team@google.com>: Add k...Pad17 through 20 PadSpec enum values. PiperOrigin-RevId: 223371590 -- ad0580b0a215257044e090181630793b7e5e9ab0 by Jon Cohen <cohenjon@google.com>: Make the table in the prefetch check not fit in L2 cache. This should help deflake the test. PiperOrigin-RevId: 223224646 -- 77c76690626b89944946d01da5e3428b763103e8 by Abseil Team <absl-team@google.com>: Fixed typo in container by replacing asbl::Hash with absl::Hash. PiperOrigin-RevId: 223083789 GitOrigin-RevId: 008301e65c323ea0b78e4a92221bf43f7f01e358 Change-Id: I81399f09cd82fbb27bcfec4c1517bb5d2fd07f3b
This commit is contained in:
parent
13327debeb
commit
926bfeb9ff
7 changed files with 18 additions and 9 deletions
|
|
@ -390,7 +390,8 @@ TEST(Table, Prefetch) {
|
|||
!defined(UNDEFINED_BEHAVIOR_SANITIZER)
|
||||
const auto now = [] { return absl::base_internal::CycleClock::Now(); };
|
||||
|
||||
static constexpr int size = 1000000;
|
||||
// Make size enough to not fit in L2 cache (16.7 Mb)
|
||||
static constexpr int size = 1 << 22;
|
||||
for (int i = 0; i < size; ++i) t.insert(i);
|
||||
|
||||
int64_t no_prefetch = 0, prefetch = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue