Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "osx/cocoa"
require "/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist"
require "benchmark"

Benchmark.bm(100) do |x|
    x.report("rubycocoa:")   { OSX::NSDictionary.dictionaryWithContentsOfFile("finder.plist") }
    x.report("textmate:") { OSX::PropertyList.load("finder.plist")  }
end

##                    
                          user     system      total        real
rubycocoa:            0.010000   0.000000   0.010000 (  0.009897)
textmate:             0.000000   0.000000   0.000000 (  0.000354)