Files
gitx/speedtest.m
T
Pieter de Bie 3d64d83f98 Create a new SpeedTest target
This adds a new target 'SpeedTest', which just loads in a repository
and displays how long it takes to load the revision. This is handy for
testing the speed of the revwalking mechanism
2008-11-24 22:32:46 +01:00

23 lines
630 B
Objective-C

//
// speedtest.m
// GitX
//
// Created by Pieter de Bie on 20-11-08.
// Copyright 2008 Pieter de Bie. All rights reserved.
//
#import "speedtest.h"
#import "PBGitRepository.h"
#import "PBGitRevList.h"
int main()
{
PBGitRepository *repo = [[PBGitRepository alloc] initWithURL:[NSURL URLWithString:@"file:///Users/pieter/projects/git"]];
PBGitRevList *revList = [[PBGitRevList alloc] initWithRepository:repo];
PBGitRevSpecifier *revSpecifier = [[PBGitRevSpecifier alloc] initWithParameters:[NSArray arrayWithObject:@"master"]];
//[repo reloadRefs];
[revList walkRevisionListWithSpecifier:revSpecifier];
return 0;
}