ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1
Test setup
2
Procedure
Certain no. of records are loaded. Then, queried using http request, when there is no traffic / load in background.
3
Network
1 Peer, 1 Orderer, CouchDB container (when using couchDB)
4
SDK
node-sdk, with express HTTP server
5
Latency measurementPostman
6
7
Original ProcessorMachine Type vCPURAMStorageStorage type
8
i7 7700HQ @2.80 GHzVirtualBox VM410 GB87200 RPM HDD
9
10
Performance Coloring Legends
CasesTested asset structure
11
Red: WorstOrange: AverageGreen: BestWorstCase: All Records in DB matches QueryAverageCase: 500 Records matches the QueryBestCase: 1 Record matches the Query
type Test struct {
Field1 string `json:"field1" istate:"Test_field1" primary:"true"`
Field2 string `json:"field2" istate:"Test_field2"`
Field3 string `json:"field3" istate:"Test_field3" `
Field4 string `json:"field4" istate:"Test_field4"`
Field5 map[string]map[string]struct{} `json:"field5" istate:"Test_field5"`
}
12
13
CaseTotal No. Records in DBCouchDB (No Index)CouchDB + IndexLevelDB + iStateCommentStorage Taken LevelDB - Without iStateStorage Taken LevelDB + iStateRedundancy of using iState / Storage requirement
14
Average 400002.8 secs270 ms40 ms~7x Quicker than 2nd Best
15
Best6000500 ms30 ms20 ms1.5x Quicker than 2nd Best
16
Best200001.3 secs30 ms20 ms1.5x Quicker than 2nd Best
17
Best400002.5 secs30 ms20 ms1.5x Quicker than 2nd Best
18
Best100000Unable to load 100k records in this test.Unable to load 100k records in this test.20 ms
19
Worst 60001.3 secs2 secs300 ms4.3x Quicker than 2nd Best
20
Worst200004.5 secs8.5 secs1 sec4.5x Quicker than 2nd Best
21
Worst400009 secs16 secs2.2 secs4x Quicker than 2nd Best
22
Worst100000Unable to load 100k records in this test.Unable to load 100k records in this test.5.5 secs488.0K ./chaincodes
10.9M ./ledgersData/historyLeveldb
397.3M ./ledgersData/chains/chains/mychannel
397.3M ./ledgersData/chains/chains
23.7M ./ledgersData/chains/index
421.0M ./ledgersData/chains
844.0K ./ledgersData/pvtdataStore
16.0K ./ledgersData/configHistory
11.4M ./ledgersData/stateLeveldb
16.0K ./ledgersData/bookkeeper
36.0K ./ledgersData/ledgerProvider
444.3M ./ledgersData
16.0K ./transientStore
444.8M .


Memory: Nil
208.0K ./chaincodes
63.0M ./ledgersData/historyLeveldb
456.4M ./ledgersData/chains/chains/mychannel
456.4M ./ledgersData/chains/chains
23.9M ./ledgersData/chains/index
480.3M ./ledgersData/chains
1.0M ./ledgersData/pvtdataStore
16.0K ./ledgersData/configHistory
80.4M ./ledgersData/stateLeveldb
16.0K ./ledgersData/bookkeeper
36.0K ./ledgersData/ledgerProvider
624.8M ./ledgersData
16.0K ./transientStore
625.0M .


Memory: 650 MB
1.45x
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100