-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.test.js
More file actions
53 lines (44 loc) · 1.04 KB
/
index.test.js
File metadata and controls
53 lines (44 loc) · 1.04 KB
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
51
52
53
let util = require('./index')
let data = {
number1: '1',
string1: 2,
boolean1: 'true',
object1: {a: 1},
array1: [1, 'a'],
database1: ';show tables',
anyone1: 'abc'
}
// int,str,bool,obj,arr,db is a Parameter Types
let t1 = Date.now()
for (let i=0;i<1024*10;i++) {
let {
int: {number1},
str: {string1},
bool: {boolean1},
obj: {object1},
arr: {array1},
db: {database1},
anyone1,
aab,
RESULT, // The result is a required parameter before, and the result is an optional parameter.
xyz,
} = util.paramProxy1(data,)
}
console.log(Date.now() - t1)
// let aab=1
//console.log(number1, string1, boolean1, object1, array1, database1, anyone1, aab, RESULT, xyz)
//util.hotReload(__dirname)
/*
let d = require('./hot-reload')
if (!global.i) {
global.i = 1
}
setTimeout(() => {
// d(++global.i)
console.log('real-time-value',d.id)
}, 2000)
d(123)
console.log(Object.keys(d))
*/
// util.infoProxy()
// aaaa11