Browse Source

perf: 基准测试升级到1000万行, 覆盖增删改查/条件查询/排序/分组

yl32940 1 month ago
parent
commit
e83507a3a8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      demo/bench/main.go

+ 2 - 2
demo/bench/main.go

@@ -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
 	}
 	}