Results 1 to 2 of 2

Thread: AOP Benchmark on performance

  1. #1
    Join Date
    Feb 2005
    Posts
    1

    Default AOP Benchmark on performance

    Dear all,

    I want to commit on Spring AOP for my projects.

    However, before I can do that, can anyone help me to
    answer the performance figures in
    http://docs.codehaus.org/display/AW/AOP+Benchmark
    which regards Spring AOP with slowest performance?

    thx,
    Chris

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Chris,

    The first thing to consider, is exactly what you plan to use AOP for. If you want to use it system wide for a large number of fine-grained aspects, then AspectJ might be better for you.

    If you are planning to use AOP for coarse-grained services such as transaction management or security then Spring is the way to go. If you want to use AOP for both - use AspectJ and Spring. Plus, with Spring you can configure you AspectJ aspects as well as your Spring aspects.

    On the performance side of things, you should note that for Spring, the performance is not particularly important and is really only a fraction of the business processing you'll be adding using AOP. For example, consider the case of transaction management where the AOP overhead is so small as to be unnoticeable.

    In the end, Spring AOP is VERY easy to use and debug in any environment. If you are only using AOP selectively then use Spring. Be wary of setting some standard for AOP framework performance before actually measuring the performance of your application with AOP running.

    If you are really worried about performance, then you can use Spring to start with and migrate to AspectWerkz later using the same AOP Alliance aspects that you used for Spring.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. JDBCTemplate Performance issue
    By tanmay in forum Data
    Replies: 1
    Last Post: Jun 22nd, 2005, 07:41 AM
  2. performance too slow
    By springuser in forum Data
    Replies: 4
    Last Post: May 3rd, 2005, 03:52 AM
  3. CGLIB Factory performance
    By tysonnorris in forum AOP
    Replies: 4
    Last Post: Mar 6th, 2005, 03:28 PM
  4. Http-invoker performance?
    By jacekk in forum Remoting
    Replies: 8
    Last Post: Dec 11th, 2004, 06:47 AM
  5. Benchmark discussed in book
    By Maarten in forum Meta
    Replies: 1
    Last Post: Aug 29th, 2004, 10:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •