Skip to content

[C++][Parquet] bloom_filter-test is very slow under valgrind #42845

Closed

Description

@asfimport

This test takes ~5 minutes to run under valgrind in Travis CI

1: [==========] Running 6 tests from 6 test cases.
1: [----------] Global test environment set-up.
1: [----------] 1 test from Murmur3Test
1: [ RUN      ] Murmur3Test.TestBloomFilter
1: [       OK ] Murmur3Test.TestBloomFilter (19 ms)
1: [----------] 1 test from Murmur3Test (34 ms total)
1: 
1: [----------] 1 test from ConstructorTest
1: [ RUN      ] ConstructorTest.TestBloomFilter
1: [       OK ] ConstructorTest.TestBloomFilter (101 ms)
1: [----------] 1 test from ConstructorTest (101 ms total)
1: 
1: [----------] 1 test from BasicTest
1: [ RUN      ] BasicTest.TestBloomFilter
1: [       OK ] BasicTest.TestBloomFilter (49 ms)
1: [----------] 1 test from BasicTest (49 ms total)
1: 
1: [----------] 1 test from FPPTest
1: [ RUN      ] FPPTest.TestBloomFilter
1: [       OK ] FPPTest.TestBloomFilter (308731 ms)
1: [----------] 1 test from FPPTest (308741 ms total)
1: 
1: [----------] 1 test from CompatibilityTest
1: [ RUN      ] CompatibilityTest.TestBloomFilter
1: [       OK ] CompatibilityTest.TestBloomFilter (62 ms)
1: [----------] 1 test from CompatibilityTest (62 ms total)
1: 
1: [----------] 1 test from OptimalValueTest
1: [ RUN      ] OptimalValueTest.TestBloomFilter
1: [       OK ] OptimalValueTest.TestBloomFilter (27 ms)
1: [----------] 1 test from OptimalValueTest (27 ms total)
1: 
1: [----------] Global test environment tear-down
1: [==========] 6 tests from 6 test cases ran. (309081 ms total)
1: [  PASSED  ] 6 tests.

Either we should change the FPPTest parameters to be faster, or we should not run that test when using valrind

Reporter: Wes McKinney / @wesm

Related issues:

PRs and other links:

Note: This issue was originally created as PARQUET-1385. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Aug 17, 2018

    @asfimport
    Author

    Junjie Chen / @chenjunjiedada:
    The GetRandomString function is very slow, I can change to test count to 1/10 size. Or let me optimize it for a while.

  2. asfimport commented on Aug 17, 2018

    @asfimport
    Author

    Junjie Chen / @chenjunjiedada:
    std::seed_seq::generate takes more than 75% cpu cycles from perf. we can change to use system clock as seed to optimize this to about 1/5 time (on my machine). Anyway skip this in case of valgrind is also ok.

  3. asfimport commented on Nov 8, 2021

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    This was fixed as part of PARQUET-1382.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions