diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2017-12-24 01:33:34 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-12-24 02:33:34 +0200 |
commit | cc7b8e3379f46469d3ec72b044fb0f993fec4d1b (patch) | |
tree | 5086b854166f4134da1e0430e87f499e904594aa /integrations/repo_migrate_test.go | |
parent | a995ad90e1055ad001a025a6d94fcc3d8ea87004 (diff) | |
download | gitea-cc7b8e3379f46469d3ec72b044fb0f993fec4d1b.tar.gz gitea-cc7b8e3379f46469d3ec72b044fb0f993fec4d1b.zip |
Add more bench (#3161)
* Improve makefile + Add benchs
* Apply recommendations of @ethantkoenig
Diffstat (limited to 'integrations/repo_migrate_test.go')
-rw-r--r-- | integrations/repo_migrate_test.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/integrations/repo_migrate_test.go b/integrations/repo_migrate_test.go index 9f41cca827..41791c1d0b 100644 --- a/integrations/repo_migrate_test.go +++ b/integrations/repo_migrate_test.go @@ -40,29 +40,3 @@ func TestRepoMigrate(t *testing.T) { session := loginUser(t, "user2") testRepoMigrate(t, session, "https://github.com/go-gitea/git.git", "git") } - -func BenchmarkRepoMigrate(b *testing.B) { - samples := []struct { - url string - name string - }{ - {url: "https://github.com/go-gitea/gitea.git", name: "gitea"}, - {url: "https://github.com/ethantkoenig/manyfiles.git", name: "manyfiles"}, - {url: "https://github.com/moby/moby.git", name: "moby"}, - {url: "https://github.com/golang/go.git", name: "go"}, - {url: "https://github.com/torvalds/linux.git", name: "linux"}, - } - - prepareTestEnv(b) - session := loginUser(b, "user2") - b.ResetTimer() - - for _, s := range samples { - b.Run(s.name, func(b *testing.B) { - for i := 0; i < b.N; i++ { - testRepoMigrate(b, session, s.url, s.name) - } - - }) - } -} |