Added benchmark

This commit is contained in:
2017-07-05 04:34:06 +02:00
parent 0e42105049
commit 8dbc8f17cf
2 changed files with 34 additions and 0 deletions

View File

@ -30,6 +30,11 @@ func BenchmarkAnimeList(b *testing.B) {
user, _ := arn.GetUser("4J6qpK1ve")
animeList := user.AnimeList()
// Prefetch
for _, item := range animeList.Items {
item.Anime()
}
b.ReportAllocs()
b.ResetTimer()