forked from Restream/reindexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bench_queries_test.go
61 lines (56 loc) · 5.02 KB
/
bench_queries_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package main
import (
"testing"
"github.com/restream/reindexer/benchmarks/repo"
)
func BenchmarkElasticGetByID(b *testing.B) { repo.Get("elastic").QueryByID(b.N, false) }
func BenchmarkMongoGetByID(b *testing.B) { repo.Get("mongo").QueryByID(b.N, false) }
func BenchmarkTarantoolGetByID(b *testing.B) { repo.Get("tarantool").QueryByID(b.N, false) }
func BenchmarkSqliteGetByID(b *testing.B) { repo.Get("sqlite").QueryByID(b.N, false) }
func BenchmarkSqliteGetByIDNoObject(b *testing.B) { repo.Get("sqlite").QueryByID(b.N, true) }
func BenchmarkMysqlGetByID(b *testing.B) { repo.Get("mysql").QueryByID(b.N, false) }
func BenchmarkMysqlGetByIDNoObject(b *testing.B) { repo.Get("mysql").QueryByID(b.N, true) }
func BenchmarkClickhouseGetByID(b *testing.B) { repo.Get("clickhouse").QueryByID(b.N, false) }
func BenchmarkClickhouseGetByIDNoObject(b *testing.B) { repo.Get("clickhouse").QueryByID(b.N, true) }
func BenchmarkReindexGetByID(b *testing.B) { repo.Get("reindex").QueryByID(b.N, false) }
func BenchmarkReindexGetByIDUnsafe(b *testing.B) { repo.Get("reindex").QueryByID(b.N, true) }
func BenchmarkRedisGetByID(b *testing.B) { repo.Get("redis").QueryByID(b.N, false) }
func BenchmarkRedisGetByIDNoObject(b *testing.B) { repo.Get("redis").QueryByID(b.N, true) }
func BenchmarkArangoGetByID(b *testing.B) { repo.Get("arango").QueryByID(b.N, false) }
func BenchmarkArangoGetByIDNoObject(b *testing.B) { repo.Get("arango").QueryByID(b.N, true) }
func BenchmarkRethinkGetByID(b *testing.B) { repo.Get("rethink").QueryByID(b.N, false) }
func BenchmarkRethinkGetByIDNoObject(b *testing.B) { repo.Get("rethink").QueryByID(b.N, true) }
func BenchmarkElastic1Cond(b *testing.B) { repo.Get("elastic").Query1Cond(b.N, false, 10) }
func BenchmarkElastic1CondNoObj(b *testing.B) { repo.Get("elastic").Query1Cond(b.N, true, 10) }
func BenchmarkMongo1Cond(b *testing.B) { repo.Get("mongo").Query1Cond(b.N, false, 10) }
func BenchmarkMongo1CondNoObj(b *testing.B) { repo.Get("mongo").Query1Cond(b.N, true, 10) }
func BenchmarkTarantool1Cond(b *testing.B) { repo.Get("tarantool").Query1Cond(b.N, false, 10) }
func BenchmarkTarantool1CondNoObj(b *testing.B) { repo.Get("tarantool").Query1Cond(b.N, true, 10) }
func BenchmarkSqlite1Cond(b *testing.B) { repo.Get("sqlite").Query1Cond(b.N, false, 10) }
func BenchmarkSqlite1CondNoObj(b *testing.B) { repo.Get("sqlite").Query1Cond(b.N, true, 10) }
func BenchmarkMysql1Cond(b *testing.B) { repo.Get("mysql").Query1Cond(b.N, false, 10) }
func BenchmarkMysql1CondNoObj(b *testing.B) { repo.Get("mysql").Query1Cond(b.N, true, 10) }
func BenchmarkReindex1Cond(b *testing.B) { repo.Get("reindex").Query1Cond(b.N, false, 10) }
func BenchmarkReindex1CondObjCache(b *testing.B) { repo.Get("reindex").Query1Cond(b.N, true, 10) }
func BenchmarkRedis1Cond(b *testing.B) { repo.Get("redis").Query1Cond(b.N, false, 10) }
func BenchmarkRedis1CondNoObject(b *testing.B) { repo.Get("redis").Query1Cond(b.N, true, 10) }
func BenchmarkArango1Cond(b *testing.B) { repo.Get("arango").Query1Cond(b.N, false, 10) }
func BenchmarkArango1CondNoObject(b *testing.B) { repo.Get("arango").Query1Cond(b.N, true, 10) }
func BenchmarkRethink1Cond(b *testing.B) { repo.Get("rethink").Query1Cond(b.N, false, 10) }
func BenchmarkRethink1CondNoObject(b *testing.B) { repo.Get("rethink").Query1Cond(b.N, true, 10) }
func BenchmarkElastic2Cond(b *testing.B) { repo.Get("elastic").Query2Cond(b.N, false, 10) }
func BenchmarkElastic2CondNoObj(b *testing.B) { repo.Get("elastic").Query2Cond(b.N, true, 10) }
func BenchmarkMongo2Cond(b *testing.B) { repo.Get("mongo").Query2Cond(b.N, false, 10) }
func BenchmarkMongo2CondNoObj(b *testing.B) { repo.Get("mongo").Query2Cond(b.N, true, 10) }
func BenchmarkTarantool2Cond(b *testing.B) { repo.Get("tarantool").Query2Cond(b.N, false, 10) }
func BenchmarkTarantool2CondNoObj(b *testing.B) { repo.Get("tarantool").Query2Cond(b.N, true, 10) }
func BenchmarkReindex2Cond(b *testing.B) { repo.Get("reindex").Query2Cond(b.N, false, 10) }
func BenchmarkReindex2CondObjCache(b *testing.B) { repo.Get("reindex").Query2Cond(b.N, true, 10) }
func BenchmarkSqlite2CondQuery(b *testing.B) { repo.Get("sqlite").Query2Cond(b.N, false, 10) }
func BenchmarkSqlite2CondNoObj(b *testing.B) { repo.Get("sqlite").Query2Cond(b.N, true, 10) }
func BenchmarkMysql2CondQuery(b *testing.B) { repo.Get("mysql").Query2Cond(b.N, false, 10) }
func BenchmarkMysql2CondNoObj(b *testing.B) { repo.Get("mysql").Query2Cond(b.N, true, 10) }
func BenchmarkArango2Cond(b *testing.B) { repo.Get("arango").Query2Cond(b.N, false, 10) }
func BenchmarkArango2CondNoObj(b *testing.B) { repo.Get("arango").Query2Cond(b.N, true, 10) }
func BenchmarkRethink2Cond(b *testing.B) { repo.Get("rethink").Query2Cond(b.N, false, 10) }
func BenchmarkRethink2CondNoObj(b *testing.B) { repo.Get("rethink").Query2Cond(b.N, true, 10) }