Results 1 to 5 of 5

Thread: Spring AOP vs Aspectj : Performance

  1. #1

    Default Spring AOP vs Aspectj : Performance

    Hi,

    From my understanding spring AOP is based on dynamic proxies where as aspectj is based on bytecode transformation technique. Based on difference performance comparison blogs I think aspectj is much faster than spring AOP.

    Guys, can you please help me in deciding if I should use aspectj instead of using spring AOP. because aspectj offers more performance. As well spring framework very well permits use of aspectj along with spring.

    Shiv

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    You might want to do a search, I'm pretty sure this has been brought up quite a few times. This might be useful.
    http://docs.codehaus.org/display/AW/AOP+Benchmark

  3. #3

    Default

    Quote Originally Posted by karldmoore View Post
    You might want to do a search, I'm pretty sure this has been brought up quite a few times. This might be useful.
    http://docs.codehaus.org/display/AW/AOP+Benchmark
    Karld,

    Considering above benchmark, spring is the slowest performer, and aspectj would be the best candidate for AOP. Hence my take : aspectj AOP with spring framework would be the best impressive combination.

  4. #4
    Join Date
    Jun 2008
    Posts
    2

    Default nanoseconds

    The time is in nanoseconds so based on your application load it might be negligible difference.
    Use developer convenience to decide which framework to use

  5. #5
    Join Date
    Mar 2005
    Posts
    16

    Default

    The real question is what are you going to use AOP for in you app. If you are not familiar with AspectJ they could a learning curve, but spring AOP is pretty easy. If you needs are simple, I would go with spring.

Posting Permissions

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