Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cvilsmeier/go-sqlite-bench
/ functions
Functions
120 in github.com/cvilsmeier/go-sqlite-bench
⨍
Functions
120
◇
Types & classes
10
↓ 143 callers
Function
MustBeNil
(a any)
app/util.go:27
↓ 47 callers
Function
MustBeEqual
(want, have any)
app/util.go:21
↓ 30 callers
Function
MustBe
(c bool)
app/util.go:15
↓ 28 callers
Method
Close
()
app/db.go:16
↓ 28 callers
Function
UnbindTime
(v int64)
app/db.go:62
↓ 18 callers
Function
BindTime
(v time.Time)
app/db.go:55
↓ 16 callers
Method
DriverName
()
app/db.go:7
↓ 15 callers
Function
NewUser
(id int, created time.Time, email string, active bool)
app/db.go:27
↓ 14 callers
Method
Exec
(sqls ...string)
app/db.go:8
↓ 13 callers
Method
Begin
()
app/db.go:9
↓ 13 callers
Method
Commit
()
app/db.go:10
↓ 12 callers
Function
millisSince
(t time.Time)
app/util.go:61
↓ 11 callers
Function
NewArticle
(id int, created time.Time, userId int, text string)
app/db.go:39
↓ 9 callers
Function
Run
(makeDb func(dbfile string) Db)
app/app.go:15
↓ 7 callers
Function
NewComment
(id int, created time.Time, articleId int, text string)
app/db.go:51
↓ 6 callers
Method
InsertUsers
(insertSql string, users []User)
app/db.go:11
↓ 6 callers
Function
dbsize
(dbfile string)
app/util.go:49
↓ 6 callers
Function
initSchema
(db Db)
app/app.go:62
↓ 6 callers
Method
prepare
(sql string)
cmd/bench-eaton/eaton.go:45
↓ 6 callers
Function
removeDbfiles
(dbfile string)
app/util.go:39
↓ 4 callers
Method
FindUsers
(querySql string)
app/db.go:14
↓ 4 callers
Function
NewSqlDb
(driverName string, db *sql.DB)
app/sqldb.go:16
↓ 3 callers
Function
MustBeSet
(a any)
app/util.go:33
↓ 3 callers
Function
benchConcurrent
Insert one million users. Then have N goroutines query all users. This benchmark is used to simulate concurrent reads.
app/app.go:508
↓ 3 callers
Function
benchLarge
Insert 10000 users with N bytes of row content. Then query all users. This benchmark is used to simulate reading of large (gigabytes) databases.
app/app.go:459
↓ 3 callers
Function
benchMany
Insert N users in one database transaction. Then query all users 1000 times. This benchmark is used to simulate a read-heavy use case.
app/app.go:406
↓ 3 callers
Method
exec
(conn *sqlite.Conn, sql string)
cmd/bench-craw/craw.go:223
↓ 3 callers
Method
exec
(sql string)
cmd/bench-zombie/zombie.go:192
↓ 2 callers
Method
FindUsersArticlesComments
(querySql string, params []any)
app/db.go:15
↓ 2 callers
Method
InsertArticles
(insertSql string, articles []Article)
app/db.go:12
↓ 2 callers
Method
InsertComments
(insertSql string, comments []Comment)
app/db.go:13
↓ 2 callers
Function
readUser
(values []sqinn.Value, icol int)
cmd/bench-sqinn/sqinn.go:153
↓ 1 callers
Function
benchComplex
Insert 200 users in one database transaction. Then insert 20000 articles (100 articles for each user) in another transaction. Then insert 400000 artic
app/app.go:281
↓ 1 callers
Function
benchReal
Insert 100 user with 20 articles per user and 20 comments per article. Each user insert executes in a separate transaction. Then query each user by em
app/app.go:144
↓ 1 callers
Function
benchSimple
Insert 1 million user rows in one database transaction. Then query all users once.
app/app.go:93
↓ 1 callers
Function
bindBool
(b bool)
cmd/bench-sqinn/sqinn.go:180
↓ 1 callers
Method
exec
(sql string)
cmd/bench-eaton/eaton.go:40
↓ 1 callers
Function
newDb
(dbfile string)
cmd/bench-craw/craw.go:23
↓ 1 callers
Function
newDb
(dbfile string)
cmd/bench-bvinc/bvinc.go:20
↓ 1 callers
Function
newDb
(dbfile string)
cmd/bench-sqinn/sqinn.go:20
↓ 1 callers
Function
newDb
(dbfile string)
cmd/bench-eaton/eaton.go:20
↓ 1 callers
Function
newDb
(dbfile string)
cmd/bench-zombie/zombie.go:20
↓ 1 callers
Function
readArticle
(values []sqinn.Value, icol int)
cmd/bench-sqinn/sqinn.go:162
↓ 1 callers
Function
readComment
(values []sqinn.Value, off int)
cmd/bench-sqinn/sqinn.go:171
↓ 1 callers
Function
unbindBool
(v int)
cmd/bench-sqinn/sqinn.go:187
Method
Begin
()
cmd/bench-craw/craw.go:47
Method
Begin
()
cmd/bench-bvinc/bvinc.go:37
Method
Begin
()
cmd/bench-sqinn/sqinn.go:36
Method
Begin
()
cmd/bench-eaton/eaton.go:51
Method
Begin
()
cmd/bench-zombie/zombie.go:36
Method
Begin
()
app/sqldb.go:31
Method
Close
()
cmd/bench-craw/craw.go:218
Method
Close
()
cmd/bench-bvinc/bvinc.go:233
Method
Close
()
cmd/bench-sqinn/sqinn.go:148
Method
Close
()
cmd/bench-eaton/eaton.go:179
Method
Close
()
cmd/bench-zombie/zombie.go:187
Method
Close
()
app/sqldb.go:157
Method
Commit
()
cmd/bench-craw/craw.go:53
Method
Commit
()
cmd/bench-bvinc/bvinc.go:41
Method
Commit
()
cmd/bench-sqinn/sqinn.go:40
Method
Commit
()
cmd/bench-eaton/eaton.go:55
Method
Commit
()
cmd/bench-zombie/zombie.go:40
Method
Commit
()
app/sqldb.go:37
Method
DriverName
()
cmd/bench-craw/craw.go:34
Method
DriverName
()
cmd/bench-bvinc/bvinc.go:26
Method
DriverName
()
cmd/bench-sqinn/sqinn.go:26
Method
DriverName
()
cmd/bench-eaton/eaton.go:30
Method
DriverName
()
cmd/bench-zombie/zombie.go:26
Method
DriverName
()
app/sqldb.go:20
Method
Exec
(sqls ...string)
cmd/bench-craw/craw.go:38
Method
Exec
(sqls ...string)
cmd/bench-bvinc/bvinc.go:30
Method
Exec
(sqls ...string)
cmd/bench-sqinn/sqinn.go:30
Method
Exec
(sqls ...string)
cmd/bench-eaton/eaton.go:34
Method
Exec
(sqls ...string)
cmd/bench-zombie/zombie.go:30
Method
Exec
(sqls ...string)
app/sqldb.go:24
Method
FindArticles
(querySql string)
cmd/bench-craw/craw.go:139
Method
FindArticles
(querySql string)
cmd/bench-bvinc/bvinc.go:119
Method
FindArticles
(querySql string)
cmd/bench-eaton/eaton.go:108
Method
FindArticles
(querySql string)
cmd/bench-zombie/zombie.go:112
Method
FindArticles
(querySql string)
app/sqldb.go:92
Method
FindUsers
(querySql string)
cmd/bench-craw/craw.go:117
Method
FindUsers
(querySql string)
cmd/bench-bvinc/bvinc.go:90
Method
FindUsers
(querySql string)
cmd/bench-sqinn/sqinn.go:95
Method
FindUsers
(querySql string)
cmd/bench-eaton/eaton.go:86
Method
FindUsers
(querySql string)
cmd/bench-zombie/zombie.go:92
Method
FindUsers
(querySql string)
app/sqldb.go:76
Method
FindUsersArticlesComments
(querySql string, params []any)
cmd/bench-craw/craw.go:161
Method
FindUsersArticlesComments
(querySql string, params []any)
cmd/bench-bvinc/bvinc.go:148
Method
FindUsersArticlesComments
(querySql string, params []any)
cmd/bench-sqinn/sqinn.go:109
Method
FindUsersArticlesComments
(querySql string, params []any)
cmd/bench-eaton/eaton.go:130
Method
FindUsersArticlesComments
(querySql string, params []any)
cmd/bench-zombie/zombie.go:132
Method
FindUsersArticlesComments
(querySql string, params []any)
app/sqldb.go:108
Method
InsertArticles
(insertSql string, articles []app.Article)
cmd/bench-craw/craw.go:81
Method
InsertArticles
(insertSql string, articles []app.Article)
cmd/bench-bvinc/bvinc.go:60
Method
InsertArticles
(insertSql string, articles []app.Article)
cmd/bench-sqinn/sqinn.go:61
Method
InsertArticles
(insertSql string, articles []app.Article)
cmd/bench-eaton/eaton.go:68
Method
InsertArticles
(insertSql string, articles []app.Article)
cmd/bench-zombie/zombie.go:60
Method
InsertArticles
(insertSql string, articles []Article)
app/sqldb.go:54
Method
InsertComments
(insertSql string, comments []app.Comment)
cmd/bench-craw/craw.go:99
Method
InsertComments
(insertSql string, comments []app.Comment)
cmd/bench-bvinc/bvinc.go:75
next →
1–100 of 120, ranked by callers