diff --git a/.example/other/test.go b/.example/other/test.go
index e69af8a74..3c5d6fd37 100644
--- a/.example/other/test.go
+++ b/.example/other/test.go
@@ -1,13 +1,12 @@
package main
import (
+ "encoding/hex"
"fmt"
- "github.com/gogf/gf/text/gstr"
)
func main() {
- filename := "FDJT02·WS·2013·DQ·D30·0002-11"
- fmt.Println(len(filename))
- fmt.Println(gstr.RuneLen(filename)) //值是29
- fmt.Println(gstr.SubStrRune(filename, 0, 26))
+ b := []byte{3, 0, 0}
+ fmt.Println(string(b))
+ fmt.Println(hex.EncodeToString(b))
}
diff --git a/README.MD b/README.MD
index 9d1336400..b4b62d82d 100644
--- a/README.MD
+++ b/README.MD
@@ -48,6 +48,39 @@ golang version >= 1.13
+# Performance
+
+> Run `5` times for each case of each project and pick up the best testing result.
+
+Performance testing cases source codes are hosted at: https://github.com/gogf/gf-performance
+
+## 1. Hello World
+
| Throughputs | +Mean Latency | +P99 Latency | +
|---|---|---|
![]() |
+![]() |
+![]() |
+
| Throughputs | +Mean Latency | +P99 Latency | +
|---|---|---|
![]() |
+![]() |
+![]() |
+