Announcement Announcement Module
Collapse
No announcement yet.
Spring AOP vs Aspectj : Performance Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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.

      Comment


      • #4
        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

        Comment


        • #5
          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.

          Comment

          Working...
          X