summaryrefslogtreecommitdiffstats
path: root/benchmark.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-19 07:14:20 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-19 07:14:20 -0800
commit303ffc868266400a518602d2e9e9285361029cb2 (patch)
tree62ef43fd48df23b55e01733a88fc13f616cf615f /benchmark.rb
parentf64d5462fa5323fc81387f79eebe9e1ae9eb0b08 (diff)
downloadthird_party-ruby-git-303ffc868266400a518602d2e9e9285361029cb2.tar.gz
third_party-ruby-git-303ffc868266400a518602d2e9e9285361029cb2.tar.xz
third_party-ruby-git-303ffc868266400a518602d2e9e9285361029cb2.zip
changed logging to be far more efficient if you're accessing all the commit objects
Diffstat (limited to 'benchmark.rb')
-rw-r--r--benchmark.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark.rb b/benchmark.rb
index 58e9703..e5a8953 100644
--- a/benchmark.rb
+++ b/benchmark.rb
@@ -2,8 +2,8 @@ require 'fileutils'
require 'benchmark'
require 'rubygems'
require 'ruby-prof'
-#require_gem 'git', '1.0.3'
-require 'lib/git'
+require_gem 'git', '1.0.3'
+#require 'lib/git'
def main
@wbare = File.expand_path(File.join('tests', 'files', 'working.git'))
@@ -66,8 +66,8 @@ def main
log.size
log.size
log.first
- g.log.between('v2.5').object('example.txt').size
- g.log.since("2 years ago").size
+ g.log.between('v2.5').object('example.txt').map { |c| c.message }
+ g.log.since("2 years ago").map { |c| c.message }
end
end