HTML Preparation code:
x
 
1
<script src="https://unpkg.com/dsteem/dist/dsteem.js"></script>
2
<script src="https://cdn.jsdelivr.net/npm/steem-tx/dist/steem-tx.min.js"></script>
3
4
<script>
5
var tx = {
6
  ref_block_num: 1234,
7
  ref_block_prefix: 445566,
8
  expiration: '2017-07-09T10:00:00.000',
9
  operations: [
10
    [
11
      'vote',
12
      {
13
        voter: 'foo',
14
        author: 'bar',
15
        permlink: 'i-like-turtles',
16
        weight: 10000
17
      }
18
    ]
19
  ],
20
  extensions: [],
21
  signatures: []
22
};
23
var keyWif = '5JQy7moK9SvNNDxn8rKNfQYFME5VDYC2j9Mv2tb7uXV5jz3fQR8';
24
25
var dsteemKey = dsteem.PrivateKey.fromString(keyWif);
26
var dsteemClient = new dsteem.Client();
27
28
var trans = new steemTx.Transaction(tx);
29
var txKey = steemTx.PrivateKey.fromString(keyWif);
30
</script>
Tests:
  • steem-tx

     
    trans.sign(txKey);
  • dsteem

     
    dsteemClient.broadcast.sign(tx, dsteemKey);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    steem-tx
    dsteem

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Chrome 79 on Windows
View result in a separate tab
Test name Executions per second
steem-tx 230.1 Ops/sec
dsteem 216.1 Ops/sec