Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-530

Relative timing for performance timeout

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    Description

      See following idea:

      Before the test, the extension will benchmark the machine, for example by counting some large loop.

      Then, instead of ms as in @Performance(time=5), it will be possible to reference time like @Performance(relativeTime=5), meaning that it must be finished sooner that 5 times duration of the loop.

      This concept can be further extended by configurable relativeUnit, e.g.

      @PerformanceTest(relativeUnitStrategy=COMPUTED)
      public TestFoo {
          @PerformanceTest(relativeTime=5)
          public void test() { 5x computed loop }
      }
      
      @PerformanceTest(relativeUnitStrategy=DEFINED, relativeUnit=5)
      public TestFoo2 {
          @PerformanceTest(relativeTime=5)
          public void test() { 5x5 }
      }
      
      @PerformanceTest(relativeUnitStrategy=CONFIGURATION)
      public TestFoo3 {
          @PerformanceTest(relativeTime=5)
          public void test() { 5x value in arquillian.xml or in system property }
      }
      
      

      and finally

      @PerformanceTest(relativeUnitStrategy=CONFIGURATION)
      public TestFoo4 {
          @PerformanceTest(relativeTime=5, time = 50)
          public void test() { what ever time is shorter will trigger }
      }
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kpiwko Karel Piwko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: