Shenandoah: Speedup ShenandoahSimpleBitMapTest

XMLWordPrintable

    • gc
    • In Review

      Shenandoah's gtest ShenandoahSimpleBitMapTest takes almost two minutes to run:
      ```
      [----------] 1 test from ShenandoahSimpleBitMapTest
      [ RUN ] ShenandoahSimpleBitMapTest.minimum_test
      [ OK ] ShenandoahSimpleBitMapTest.minimum_test (0 ms)
      [----------] 1 test from ShenandoahSimpleBitMapTest (0 ms total)
                                                                                                                                                                                                                                                           
      [----------] Global test environment tear-down
      [==========] 33 tests from 7 test suites ran. (137092 ms total)
      ```
      This is largely because it inspects every word in the heap repeatedly. However, if we restrict it to a smaller section of the heap, it can be sped up significantly (137092 ms total -> 2534 ms total).
      ```
      [----------] 1 test from ShenandoahSimpleBitMapTest
      [ RUN ] ShenandoahSimpleBitMapTest.minimum_test
      [ OK ] ShenandoahSimpleBitMapTest.minimum_test (0 ms)
      [----------] 1 test from ShenandoahSimpleBitMapTest (0 ms total)

      [----------] Global test environment tear-down
      [==========] 33 tests from 7 test suites ran. (2534 ms total)
      [ PASSED ] 33 tests.
      ```

            Assignee:
            William Kemper
            Reporter:
            William Kemper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: