| 422 | } |
| 423 | |
| 424 | static std::vector<TestFormatParams> Values() { |
| 425 | std::vector<TestFormatParams> values; |
| 426 | // Use a reduced number of batches in valgrind to avoid timeouts. |
| 427 | #ifndef ARROW_VALGRIND |
| 428 | int num_batches = 16; |
| 429 | #else |
| 430 | int num_batches = 4; |
| 431 | #endif |
| 432 | for (const bool use_threads : std::vector<bool>{true, false}) { |
| 433 | values.push_back(TestFormatParams{use_threads, num_batches, 1024}); |
| 434 | } |
| 435 | return values; |
| 436 | } |
| 437 | }; |
| 438 | |
| 439 | inline std::ostream& operator<<(std::ostream& out, const TestFormatParams& params) { |