Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
dsteem vs steem-js round 2 - fix
(version: 0)
FIGHT
Comparing performance of:
dsteem sign tx vs steem-js sign tx vs dsteem wif to public vs steem-js wif to public
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="//unpkg.com/dsteem@^0.8.1/dist/dsteem.js"></script> <script src="//cdn.jsdelivr.net/npm/steem/dist/steem.min.js"></script>
Script Preparation code:
var tx = { ref_block_num: 1234, ref_block_prefix: 445566, expiration: '2017-07-09T10:00:00.000', operations: [['vote', { voter: 'foo', author: 'bar', permlink: 'i-like-turtles', weight: 10000 }]], extensions: [], signatures: [] } var keyWif = '5JQy7moK9SvNNDxn8rKNfQYFME5VDYC2j9Mv2tb7uXV5jz3fQR8' var dsteemKey = dsteem.PrivateKey.fromString(keyWif) var dsteemClient = new dsteem.Client() var steemjsKey = {posting: keyWif}
Tests:
dsteem sign tx
dsteemClient.broadcast.sign(tx, dsteemKey)
steem-js sign tx
steem.auth.signTransaction(tx, steemjsKey)
dsteem wif to public
dsteem.PrivateKey.from(keyWif).createPublic()
steem-js wif to public
steem.auth.wifToPublic(keyWif)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
dsteem sign tx
steem-js sign tx
dsteem wif to public
steem-js wif to public
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
I'll break down the benchmark and its various components. **Benchmark Overview** The provided JSON represents a JavaScript microbenchmarking test case, specifically designed to compare the performance of two Steemit APIs: `dsteem` and `steem-js`. The test aims to measure the speed of different operations involving Steemit wallets, such as signing transactions (`broadcast.sign()` or `auth.signTransaction()`) and converting wallet private keys to public formats (`PrivateKey.from()` or `wifToPublic()`). **Options Compared** The benchmark compares two options: 1. **dsteem**: A JavaScript wrapper around the Steemit API, providing a more lightweight and optimized interface for interacting with the Steemit blockchain. 2. **steem-js**: A full-fledged implementation of the Steemit API in JavaScript, which might be more comprehensive but also heavier and potentially slower. **Pros and Cons** * **dsteem**: Pros: + Lightweight and optimized + Faster execution times (as seen in the benchmark results) * Cons: + May lack some features or functionality compared to steem-js * **steem-js**: Pros: + More comprehensive feature set + Can be a better choice for developers who need more control over their Steemit interactions * Cons: + Heavier and potentially slower than dsteem **Library Descriptions** 1. **dsteem**: A JavaScript wrapper around the Steemit API, providing a lightweight interface for interacting with the Steemit blockchain. 2. **steem-js**: A full-fledged implementation of the Steemit API in JavaScript, which provides a more comprehensive feature set. The benchmark uses these libraries to perform specific operations: * `dsteemPrivateKey.fromString(keyWif)` converts a private key from WIF format to an object that can be used by dsteem. * `dsteem.Client()` creates a new instance of the Steemit API client, which is used for broadcasting transactions and other interactions. * `steem.auth.signTransaction(tx, steemjsKey)` signs a transaction using the Steemit API's authentication mechanism. * `steem auth.wifToPublic(keyWif)` converts a private key from WIF format to public format. **Special JavaScript Features/Syntax** There is no explicit mention of special JavaScript features or syntax in the benchmark code. However, it's worth noting that both dsteem and steem-js are designed for Node.js environments, which may involve some additional setup and configuration beyond what's shown here. **Other Alternatives** If you're interested in exploring alternative Steemit APIs or libraries, consider: * **sbd**: A Java library for interacting with the Steemit blockchain. * **steemit-graphql**: A Python library for querying the Steemit API using GraphQL. * **@steemjs/core**: A TypeScript module providing a basic structure for building Steemit applications. Keep in mind that each of these alternatives has its own strengths and weaknesses, and may not offer identical functionality or performance to dsteem or steem-js.
Related benchmarks:
SJCL sym vs asym
SJCL sym vs asym
lodash clone vs. JSON.parse(JSON.stringify()) vs. fastest-json-copy | On a Big Object
date diff
Test String Compare
Comments
Confirm delete:
Do you really want to delete benchmark?