-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
50 lines (43 loc) · 1.01 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package main
import (
test "github.com/Andrew-M-C/go-tools/_test"
"github.com/Andrew-M-C/go-tools/log"
)
func main() {
// log.SetLogLevel(log.LEVEL_NONE)
log.SetLogLevel(log.LEVEL_DEBUG)
// test.TestSqlToJson()
test.TestJsonValue()
test.TestJsonObjSort()
// test.TestJsonArraySort()
// test.TestStr()
// {
// var t1, t2, t3, t4, t5 int64
// COUNT := int64(10000)
// for i := int64(0); i < COUNT; i++ {
// e1, e2, e3, e4, e5 := test.TestOrigJsonEffenciency()
// t1 += e1
// t2 += e2
// t3 += e3
// t4 += e4
// t5 += e5
// }
// t1 /= COUNT
// t2 /= COUNT
// t3 /= COUNT
// t4 /= COUNT
// t5 /= COUNT
// log.Info("unmarshal to map: %v", t1)
// log.Info("unmarshal to map and parse: %v", t2)
// log.Info("unmarshal to struct: %v", t3)
// log.Info("jsonparser: %v", t4)
// log.Info("jsonconv: %v", t5)
// }
// test.TestAwsomeEscapingJson()
// test.TestJsonMerge()
// test.TestReadSqlKVs()
// test.TestXmlconv()
// test.TestXmlconvAccess()
log.Info("demo done")
return
}