Skip to content

feat: bench for tutorials - #3

Merged
miaobyte merged 5 commits into
array2d:masterfrom
carsontung666:master
Aug 4, 2026
Merged

feat: bench for tutorials#3
miaobyte merged 5 commits into
array2d:masterfrom
carsontung666:master

Conversation

@carsontung666

@carsontung666 carsontung666 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

#1

  • 01-basics 给 hello、arith 补了 Python/C 版本。
  • 04-algo 给四个算法补了 Python/C 版本。
  • benchmark tutorial 里面三种语言的测试

### Environment
- OS: [e.g. Ubuntu 24.04]
- Go version: [e.g. 1.24.4]
- Redis version: [e.g. 7.2]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redis kvspace不能删除,后续考虑增加tikv等后端。
支持对耗时不敏感的agent kv执行引擎

Comment thread .github/workflows/ci.yml
- run: go mod tidy
- run: go build ./...

# ── tutorial 集成测试(需要 Redis)────────────────────────────────────────

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redis kvspace不能删除,后续考虑增加tikv等后端。
支持对耗时不敏感的agent kv执行引擎

Comment thread cmd/kvlang/main.go
import (
"os"

// 注册 KVSpace 实现;--kvspace DSN 的 scheme 选择后端(默认 redis://;可 KVLANG_KVSPACE=art:// 切换进程内 ART)。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redis kvspace不能删除,后续考虑增加tikv等后端。
支持对耗时不敏感的agent kv执行引擎

Comment thread tutorial/benchmark.csv
Comment thread tutorial/test_benchmark.py Outdated
@@ -0,0 +1,177 @@
import csv

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议test.py和test_benchmark.py 合二为一

Comment thread kvspace.go
type KVPair struct {
Key string
Val XValue
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件确实应该删,应该在kvspace-go项目中

@miaobyte
miaobyte merged commit c442ea2 into array2d:master Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants