cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Sutic <leo.su...@gmail.com>
Subject Cost of Synchronization
Date Sun, 18 Jul 2004 20:06:18 GMT
Every now and then the subject comes up: Are we losing performance due
to methods being synchronized?

Some figures (for Java1.3.1, but anyway):

    http://www.cs.umd.edu/~pugh/IsCodeOptimizationRelevant.pdf

    Performance (2 processor Ultra 60)
    - HotSpot (1.3 beta)
        - Original: 4788
        - Altered: 4923 (+3%)  [This is the un-synchronized version]
    - Exact VM (1.2.2)
        - Original: 6649
        - Altered: 6874 (+3%) [This is the un-synchronized version]

    - Not a big win (3%)
        - Which JVM used more of an issue
        - Exact JVM does a better job of interfacing with
          Solaris networking libraries?

Some quotes:

    Lessons:
    ...
    But the real problem was the algorithm
        Cost of stupidity higher than cost of synchronization

I found this via Ted Leung - http://www.sauria.com/blog Quite a cool
blog, BTW. He comes up with gems fairly regularly.

/LS

Mime
View raw message