View salad's Ticket

Improve the speed of specs & features

  • baphled (at boodah)
  • baphled (at boodah)
  • 2010-08-05T15:26:33Z
  • improvement "technical dept"
  • Not assigned to a milestone.
  • Ticket open
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-08T20:14:56Z
    • To help speed things up, we need to improve the speed of our tests, stubbing and mocking out external dependencies as much as possible.

      The first culprit would be centered around importing features to Salad, this should be the first port of call

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-08T22:15:40Z
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-13T09:59:47Z
    • We'll first stub out the retrieval of feature file and limit it 2 a couple to start with.

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-13T12:27:03Z
    • Refactored specs to speed up the tests.

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-13T20:13:26Z
    • Made further improvements to /projects/import & projects spec.

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-21T21:37:07Z
    • Need to look at features/plain/import_a_single_feature.feature

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-21T22:12:59Z
    • Features now running at

      Cucumber plain

      
      208 scenarios (208 passed)
      1178 steps (1178 passed)
      4m57.927s
      

      Rspec

      
      Finished in 40.55213 seconds


      288 examples, 0 failures
      on a 1200MHz Intel(R) Core(TM)2 Duo CPU

      Feature could do with speeding up some more

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-22T22:18:23Z
    • Added is a copy of the rspec profile, displaying the slowest specs on the above box, we'll focus on improving these tests next.

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-26T14:09:53Z
    • RSpec

      
      Finished in 48.084478 seconds


      287 examples, 0 failures
      Cucumber
      
      208 scenarios (208 passed)
      1178 steps (1178 passed)
      3m50.018s
      

      On

      
        Processor Name:   Intel Core 2 Duo
        Processor Speed:  2 GHz
        Number Of Processors: 1
      
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-26T14:10:30Z
    • Im sure these features could be improved some what more but this is a bigger improvement from the speed we were getting initially.

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-04-26T15:44:40Z
    • Will move to another milestone.

    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-06-29T10:34:58Z
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-07-21T16:56:12Z
    • Selenium

      
      159 scenarios (29 undefined, 130 passed)
      937 steps (8 skipped, 46 undefined, 883 passed)
      4m4.395s
      

      Cucumber

      
      26 scenarios (26 passed)
      132 steps (132 passed)
      3m37.560s
      

      On

      
      Processor Name:   Intel Core 2 Duo
        Processor Speed:  2 GHz
        Number Of Processors: 1
      
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-07-22T21:22:16Z
    • Rspec

      
      Finished in 147.4069 seconds


      361 examples, 0 failures, 8 pending

      Cucumber

      
      259 scenarios (259 passed)
      1247 steps (1247 passed)
      20m44.310s
      

      On

      
      Dual core
      vendor_id       : GenuineIntel
      cpu family      : 6
      model           : 15
      model name      : Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz
      stepping        : 13
      cpu MHz         : 1200.000
      cache size      : 2048 KB
      
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-08-05T13:19:10Z
    • baphled (at boodah)
    • baphled (at boodah)
    • 2010-08-05T15:26:33Z
    • As a temporary measure we can stub out or feature sync and import based specs. This should go along way to improving the overall speed of our specs.