diff --git a/benchmarks/DB_test.go b/benchmarks/DB_test.go index 63c13cfb..bca3ee29 100644 --- a/benchmarks/DB_test.go +++ b/benchmarks/DB_test.go @@ -7,12 +7,15 @@ import ( ) func BenchmarkDBGetMap(b *testing.B) { + user, _ := arn.GetUser("4J6qpK1ve") + b.ReportAllocs() b.ResetTimer() b.RunParallel(func(pb *testing.PB) { for pb.Next() { - arn.DB.GetMap("AnimeList", "4J6qpK1ve") + animeList, _ := arn.GetAnimeList(user) + noop(animeList) } }) } @@ -23,7 +26,11 @@ func BenchmarkDBGet(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { - arn.DB.Get("AnimeList", "4J6qpK1ve") + list, _ := arn.DB.Get("AnimeList", "4J6qpK1ve") + animeList := list.(*arn.AnimeList) + noop(animeList) } }) } + +func noop(list *arn.AnimeList) {} diff --git a/styles/include/config.scarlet b/styles/include/config.scarlet index edda0242..14decf4c 100644 --- a/styles/include/config.scarlet +++ b/styles/include/config.scarlet @@ -64,4 +64,4 @@ nav-height = 3.11rem // Timings fade-speed = 200ms -transition-speed = 270ms \ No newline at end of file +transition-speed = 250ms \ No newline at end of file diff --git a/tests.go b/tests.go index 5f631dfd..23b7cac9 100644 --- a/tests.go +++ b/tests.go @@ -154,18 +154,19 @@ var routeTests = map[string][]string{ }, // Disable these tests because they require authorization - "/auth/google": nil, - "/auth/google/callback": nil, - "/auth/facebook": nil, - "/auth/facebook/callback": nil, - "/import": nil, - "/import/anilist/animelist": nil, - "/anime/:id/edit": nil, - "/new/thread": nil, - "/new/soundtrack": nil, - "/user": nil, - "/settings": nil, - "/extension/embed": nil, + "/auth/google": nil, + "/auth/google/callback": nil, + "/auth/facebook": nil, + "/auth/facebook/callback": nil, + "/import": nil, + "/import/anilist/animelist": nil, + "/import/anilist/animelist/finish": nil, + "/anime/:id/edit": nil, + "/new/thread": nil, + "/new/soundtrack": nil, + "/user": nil, + "/settings": nil, + "/extension/embed": nil, } // API interfaces