|
20 | 20 | # |
21 | 21 | # An object reference that may be updated atomically. |
22 | 22 | # |
| 23 | + # Testing with ruby 2.1.2 |
| 24 | + # |
| 25 | + # *** Sequential updates *** |
| 26 | + # user system total real |
| 27 | + # no lock 0.000000 0.000000 0.000000 ( 0.005502) |
| 28 | + # mutex 0.030000 0.000000 0.030000 ( 0.025158) |
| 29 | + # MutexAtomic 0.100000 0.000000 0.100000 ( 0.103096) |
| 30 | + # CAtomic 0.040000 0.000000 0.040000 ( 0.034012) |
| 31 | + # |
| 32 | + # *** Parallel updates *** |
| 33 | + # user system total real |
| 34 | + # no lock 0.010000 0.000000 0.010000 ( 0.009387) |
| 35 | + # mutex 0.030000 0.010000 0.040000 ( 0.032545) |
| 36 | + # MutexAtomic 0.830000 2.280000 3.110000 ( 2.146622) |
| 37 | + # CAtomic 0.040000 0.000000 0.040000 ( 0.038332) |
| 38 | + # |
| 39 | + # Testing with jruby 1.9.3 |
| 40 | + # |
| 41 | + # *** Sequential updates *** |
| 42 | + # user system total real |
| 43 | + # no lock 0.170000 0.000000 0.170000 ( 0.051000) |
| 44 | + # mutex 0.370000 0.010000 0.380000 ( 0.121000) |
| 45 | + # MutexAtomic 1.530000 0.020000 1.550000 ( 0.471000) |
| 46 | + # JavaAtomic 0.370000 0.010000 0.380000 ( 0.112000) |
| 47 | + # |
| 48 | + # *** Parallel updates *** |
| 49 | + # user system total real |
| 50 | + # no lock 0.390000 0.000000 0.390000 ( 0.105000) |
| 51 | + # mutex 0.480000 0.040000 0.520000 ( 0.145000) |
| 52 | + # MutexAtomic 1.600000 0.180000 1.780000 ( 0.511000) |
| 53 | + # JavaAtomic 0.460000 0.010000 0.470000 ( 0.131000) |
| 54 | + # |
23 | 55 | # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html |
24 | 56 | # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/package-summary.html |
25 | 57 | class Concurrent::Atomic < Concurrent::JavaAtomic |
|
0 commit comments