Rubinius and DICOM Ruby
Breaktime with Rubinius… ok, so my interest peaked and I wanted to see how it would go with my favorite gem, Ruby DICOM and a common task, anonymization. Im not sayin, im just sayin should I have gotten a better performance benchmark from rbx ?
Here is the lil script.
# Rip through some DICOM, and anonymize
require 'rubygems'
require 'dicom'
require 'benchmark'
a = DICOM::Anonymizer.new
a.add_folder("/Users/sween/Desktop/DICOMA")
puts Benchmark.measure { a.execute }
Here is my benchmark from rbx:
ron-sweeneys-macbook:desktop sween$ rbx anon_dicom_rbx.rb
*******************************************************
Initiating anonymization process.
Searching for files...
Done.
362 files have been identified in the specified folder(s).
Separate write folder not specified. Will overwrite existing DICOM files.
Initiating read/update/write process (This may take some time)...
Anonymization process completed!
All DICOM objects were SUCCESSFULLY written as DICOM files.
Elapsed time: 147.6 seconds
*******************************************************
147.684140 0.000000 147.684140 (147.684125)
Here is my benchmark from missionary Ruby 1.8.6
ron-sweeneys-macbook:desktop sween$ ruby anon_dicom.rb
*******************************************************
Initiating anonymization process.
Searching for files...
Done.
362 files have been identified in the specified folder(s).
Separate write folder not specified. Will overwrite existing DICOM files.
Initiating read/update/write process (This may take some time)...
Anonymization process completed!
All DICOM objects were SUCCESSFULLY written as DICOM files.
Elapsed time: 25.0 seconds
*******************************************************
6.310000 1.990000 8.300000 ( 25.078275)









