@@ -7,12 +7,16 @@ Don't hesitate to leave your remarks beneath.
77# The process
88UUID array, map and object are used to compare performance
99Same UUID's used for all of them, the total count of UUID's are also same for all.
10+ Size between 100K to 1 million taken to perform each operation
11+ Total 10 Find/Delete/Insert done for each size
12+ Averate of 10 operation is considered for comparision.
13+
1014
1115Performance comparision done for
12- insert operation
13- find operation
14- delete operation
15-
16+ ... insert operation
17+ ... find operation
18+ ... delete operation
19+
1620| Action/Size | 100000 | 200000 | 300000 | 400000 | 500000 | 600000 | 700000 | 800000 | 900000 | 1000000 |
1721| ----------------| --------| --------| --------| --------| --------| --------| --------| --------| ---------| ---------|
1822| Delete->Array | 0.0023 | 0.0021 | 0.0022 | 0.0022 | 0.0025 | 0.0023 | 0.0026 | 0.0029 | 0.0030 | 0.0028 |
@@ -25,21 +29,20 @@ Performance comparision done for
2529| Insert->Map | 0.0029 | 0.0024 | 0.0027 | 0.0028 | 0.0028 | 0.0048 | 0.0028 | 0.0031 | 0.0036 | 0.0034 |
2630| Insert->Object | 0.0017 | 0.0016 | 0.0017 | 0.0016 | 0.0036 | 0.0017 | 0.0017 | 0.0022 | 0.0022 | 0.0026 |
2731
28- It is interesting to know that find operation on array takes the maximum time.
32+ # Observation
33+ ...Find Operation, Array takes maximum time, Map and Object Find is almost similar performance
34+ ...Delete Operation, Map takes maximum time and Object is the fastest
35+ ...Insert Operation, Map takes maximum time and Object is the fastest
36+ # Ackonwledgement
37+ [ Create Command line Javascript application] (https://opensource.com/article/18/7/node-js-interactive-cli )
2938
30- #Ackonwledgement
31- Create Command line Javascript application
32- -https://opensource.com/article/18/7/node-js-interactive-cli
39+ [ QuickGUID generator] (https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript )
3340
34- QuickGUID generator
35- -https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
41+ [ High resolution time in Javascript ] (https://nodejs.org/api/process.html#process_process_hrtime_time & https://stackoverflow.com/questions/6233927/microsecond-timing-in-javascript )
3642
37- High resolution time in Javascript
38- -https://nodejs.org/api/process.html#process_process_hrtime_time & https://stackoverflow.com/questions/6233927/microsecond-timing-in-javascript
43+ [ Article on Array, Map, Object ] ( -https://codeburst.io/array-vs-set-vs-map-vs-object-real-time-use-cases-in-javascript-es6-47ee3295329b )
3944
40- Article on Array, Map, Object
41- -https://codeburst.io/array-vs-set-vs-map-vs-object-real-time-use-cases-in-javascript-es6-47ee3295329b
42- #TO DO
45+ # TO DO
4346-User different type of meathods to manage arrays (find/insert/delete)
4447-User different type of meathods to manage Object (delete)
4548
0 commit comments