Speed up test execution.
GitOrigin-RevId: f52b544d3373d008a63bf7a94e6985c108112581
This commit is contained in:
parent
53d694a01c
commit
4a5a6e708f
@ -126,7 +126,7 @@ TEST(StealingQueue, simple) {
|
|||||||
td::Random::Xorshift128plus rnd(123);
|
td::Random::Xorshift128plus rnd(123);
|
||||||
for (std::size_t i = 0; i < threads_n; i++) {
|
for (std::size_t i = 0; i < threads_n; i++) {
|
||||||
threads.emplace_back([&, id = static_cast<td::uint32>(i)] {
|
threads.emplace_back([&, id = static_cast<td::uint32>(i)] {
|
||||||
for (td::uint64 round = 1; round < 10000; round++) {
|
for (td::uint64 round = 1; round < 1000; round++) {
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
sum = 0;
|
sum = 0;
|
||||||
int n = static_cast<int>(rnd() % 5);
|
int n = static_cast<int>(rnd() % 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user