- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkDelete (0.17 sec)
-
tests/benchmark_test.go
} 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) { user := *GetUser("find", Config{}) for x := 0; x < b.N; x++ { user.ID = 0 DB.Create(&user) DB.Delete(&user) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 01 03:50:57 UTC 2022 - 1.5K bytes - Viewed (0)