|
@@ -12,7 +12,7 @@ import (
|
|
|
"time"
|
|
"time"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-const N = 200_000
|
|
|
|
|
|
|
+const N = 10_000_000
|
|
|
|
|
|
|
|
// ======================== 计时工具 ========================
|
|
// ======================== 计时工具 ========================
|
|
|
|
|
|
|
@@ -115,7 +115,7 @@ func main() {
|
|
|
section("2. 批量插入 (增)")
|
|
section("2. 批量插入 (增)")
|
|
|
t0 := time.Now()
|
|
t0 := time.Now()
|
|
|
insertOK := int64(0)
|
|
insertOK := int64(0)
|
|
|
- reportInterval := N / 10
|
|
|
|
|
|
|
+ reportInterval := N / 20
|
|
|
if reportInterval < 100000 {
|
|
if reportInterval < 100000 {
|
|
|
reportInterval = 100000
|
|
reportInterval = 100000
|
|
|
}
|
|
}
|