JavaMemoryModel: Summary of useless sync

From: Bill Pugh (pugh@cs.umd.edu)
Date: Sun Nov 14 1999 - 23:03:03 EST


I combined the numbers of syncs from all of the spec benchmarks,
from JLex and from the Volano Server benchmark. None of these syncs
are used for communication between threads.

Of course, sums are misleading - most of the syncs are from DB's use
of Vector. Still, it is informative.

        Bill

Vector 61,984,740 69.6%
BufferedInputStream 8,941,342 10.0%
HashTable 8,278,439 9.3%
BufferedOutputStream 4,376,207 4.9%
ByteArrayOutputStream 3,831,749 4.3%
StringBuffer 718,667 0.8%
String 688,315 0.8%
Stack 160,595 0.2%
DataOutputStream 13,899 0.0%
ByteArrayInputStream 7,138 0.0%
BufferedReader 528 0.0%
BufferedWriter 418 0.0%
Total 89,002,037
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:23 EDT