zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go test -run NONE -bench . goos: linux goarch: amd64 pkg: zzh/aaa cpu: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz BenchmarkTokenize-6 60164 19742 ns/op PASS ok zzh/aaa 1.392s
zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go test -run NONE -bench . -cpuprofile=tokenizer_cpu.pprof goos: linux goarch: amd64 pkg: zzh/aaa cpu: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz BenchmarkTokenize-6 58401 19679 ns/op PASS ok zzh/aaa 1.508s
zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go tool pprof -http=:8080 tokenizer_cpu.pprof Serving web UI on http://localhost:8080 Failed to execute dot. Is Graphviz installed? exec: "dot": executable file not found in $PATH Failed to execute dot. Is Graphviz installed? exec: "dot": executable file not found in $PATH ^Cgo tool pprof: signal: interrupt zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ sudo apt install graphviz zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go tool pprof -http=:8080 tokenizer_cpu.pprof
zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go test -run NONE -bench . -benchmem goos: linux goarch: amd64 pkg: zzh/aaa cpu: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz BenchmarkTokenize-6 61143 19571 ns/op 10739 B/op 125 allocs/op PASS ok zzh/aaa 1.398s zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go test -run NONE -bench . -memprofile=tokenizer_mem.pprof goos: linux goarch: amd64 pkg: zzh/aaa cpu: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz BenchmarkTokenize-6 60507 19426 ns/op PASS ok zzh/aaa 1.380s zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go tool pprof -http=:8080 tokenizer_mem.pprof Serving web UI on http://localhost:8080
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律