Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4d11d57

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

File tree

Expand file treeCollapse file tree

4 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-3
lines changed
File renamed without changes.

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

Copy file name to clipboardExpand all lines: examples/benchmark_atomic_1.rb
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: examples/graph_atomic_bench.rb
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.