3 Replies Latest reply on Nov 20, 2007 10:28 AM by jgilbert

    JSFUnit Performance Testing Tool

    ssilvert

      I added a simple performance testing tool to JSFUnit. I wasn't planning to add new features this close to the beta, but I couldn't resist this one since it seems like a such a big win for a relatively small change.

      You can read about it here: http://wiki.jboss.org/wiki/JSFUnitPerformanceAnalysis

      As always, feedback is greatly appreciated.

      Stan
      http://www.jsfunit.org

        • 1. Re: JSFUnit Performance Testing Tool
          jgilbert

          are there any limitations with using JUnitPerf with JSFUnit?

          • 2. Re: JSFUnit Performance Testing Tool
            ssilvert

             

            "jgilbert" wrote:
            are there any limitations with using JUnitPerf with JSFUnit?


            I haven't tried JSFUnit and JUnitPerf together, but I don't see anything that makes me think it wouldn't work.

            JUnitPerf's TimedTest looks pretty straightforward. I don't think you would have any problems with that. JSFUnit's JSFTimer is timing each phase of the JSF lifecycle. JUnitPerf is looking end-to-end including client setup time.

            I would use the JUnitPerf LoadTest more for concurrency testing than for load testing. As they say in the doc, it's not meant to be a full-fledged load testing tool. This would be even more true with JSFUnit because you are running clients on the same box as the server. If you did a LoadTest with 10 clients then that would mean it creates 10 threads on your server for the clients. Then you would have up to 10 concurrent JSF requests which would need to use 10 more threads for server-side request handling.

            Come to think of it, JUnitPerf LoadTest would be a good tool for me to use in testing concurrency of JSFUnit itself.

            If you try it out, please report your findings back here. I think overall it looks like a good solution.

            Stan

            • 3. Re: JSFUnit Performance Testing Tool
              jgilbert

              Thanks. Sounds like the combination would be powerful. I like using JUnitPerf for basic day to day performance testing to help catch the glaring perf issues before going to heavy duty performance testing.