- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkUpdate (0.23 sec)
-
tests/benchmark_test.go
user := *GetUser(fmt.Sprintf("scan-%d", i), Config{}) DB.Create(&user) } var u []*User b.ResetTimer() for x := 0; x < b.N; x++ { DB.Raw("select * from users").Scan(&u) } } func BenchmarkUpdate(b *testing.B) { user := *GetUser("find", Config{}) DB.Create(&user) for x := 0; x < b.N; x++ { DB.Model(&user).Updates(map[string]interface{}{"Age": x}) } } func BenchmarkDelete(b *testing.B) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 01 03:50:57 UTC 2022 - 1.5K bytes - Viewed (0)