-
Notifications
You must be signed in to change notification settings - Fork 285
/
Copy pathindex.js
50 lines (46 loc) · 1.21 KB
/
index.js
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
const {
benchmarker
} = require('@faustbrian/benchmarker');
const {
Managers
} = require("@arkecosystem/crypto");
Managers.configManager.setFromPreset("mainnet");
benchmarker('core', [{
name: 'new Block()',
scenarios: require('./block/create')
},
{
name: 'Block.serialize (0 transactions)',
scenarios: require('./block/serialize')
},
{
name: 'Block.serialize (150 transactions)',
scenarios: require('./block/serializeWithTransactions')
},
{
name: 'Block.deserialize (0 transactions)',
scenarios: require('./block/deserialize/0')
},
{
name: 'Block.deserialize (150 transactions)',
scenarios: require('./block/deserialize/150')
},
{
name: 'new Transaction (Type 0)',
scenarios: require('./transaction/create/0')
},
{
name: 'Transaction.serialize (Type 0)',
scenarios: require('./transaction/serialize/0')
},
{
name: 'Transaction.deserialize (Type 0)',
scenarios: require('./transaction/deserialize/0')
},
{
name: 'HashAlgorithms',
scenarios: require('./crypto/hash-algorithms')
},
], {
hideSummary: true
});