Use gzip to improve transfer performance

This commit is contained in:
Kohsuke Kawaguchi
2012-04-11 15:44:04 -07:00
parent b843606ebe
commit 6372337456

View File

@@ -192,6 +192,15 @@ public class AppTest extends TestCase {
System.out.println(hooks);
}
public void testOrgRepositories() throws IOException {
GitHub gitHub = GitHub.connect();
GHOrganization j = gitHub.getOrganization("jenkinsci");
long start = System.currentTimeMillis();
Map<String, GHRepository> repos = j.getRepositories();
long end = System.currentTimeMillis();
System.out.printf("%d repositories in %dms\n",repos.size(),end-start);
}
public void testOrganization() throws IOException {
GitHub gitHub = GitHub.connect();
GHOrganization j = gitHub.getOrganization("jenkinsci");