Skip to content

Commit 4d11d57

Browse files
committed
Preparation for the 1.0.0.pre1 release.
1 parent cd2530a commit 4d11d57

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed
File renamed without changes.

examples/bench_atomic_1.rb renamed to examples/benchmark_atomic_1.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def para_prepare(&block)
109109

110110
$tg = nil
111111
if $conf[:lock] == "atomic"
112-
$atom = Concurrent::Atomic.new(0)
112+
$atom = Concurrent::AtomicReference.new(0)
113113
$tg = para_prepare do |diff|
114114
$atom.update do |x|
115115
slow_down
File renamed without changes.

examples/graph_atomic_bench.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
ret = []
3939
10.times do
40-
ret << `ruby #{File.dirname(__FILE__)}/bench_atomic_1.rb -l #{conf[:lock]} -t #{i}`.to_f
40+
ret << `ruby #{File.dirname(__FILE__)}/benchmark_atomic_1.rb -l #{conf[:lock]} -t #{i}`.to_f
4141
end
4242

4343
line = ([i] + ret).join(', ')
@@ -60,7 +60,7 @@
6060

6161
ret = []
6262
10.times do
63-
ret << `ruby #{File.dirname(__FILE__)}/bench_atomic_1.rb -l #{conf[:lock]} -s #{i}`.to_f
63+
ret << `ruby #{File.dirname(__FILE__)}/benchmark_atomic_1.rb -l #{conf[:lock]} -s #{i}`.to_f
6464
end
6565

6666
line = ([i] + ret).join(', ')

0 commit comments

Comments
 (0)