Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
dsteem vs steem-js round 2
(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:
8 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.steemjs.com/lib/latest/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 take a deep breath and dive into explaining the benchmark. **Overview** The provided JSON represents a JavaScript microbenchmark test case, which compares the performance of two Steemit APIs: `dsteem` and `steem-js`. The test measures the time it takes to perform specific operations, such as signing transactions and converting WIF (Wallet Import Format) keys to public keys. **Benchmark Definition** The benchmark definition is provided in the JSON structure, which includes three test cases: 1. **dsteem sign tx**: This test case measures the time it takes for `dsteemClient.broadcast.sign(tx, dsteemKey)` to execute. 2. **steem-js sign tx**: This test case measures the time it takes for `steem.auth.signTransaction(tx, steemjsKey)` to execute. 3. **dsteem wif to public**: This test case measures the time it takes for `dsteem.PrivateKey.from(keyWif).createPublic()` to execute. 4. **steem-js wif to public**: This test case measures the time it takes for `steem.auth.wifToPublic(keyWif)` to execute. **Options Compared** The two Steemit APIs being compared are: * **dsteem**: A JavaScript library that provides a API to interact with the Steemit blockchain. It's likely maintained by the Steemit community. * **steem-js**: A lightweight JavaScript wrapper for the Steemit API, which is designed to be easier to use than the official API. **Pros and Cons** **dsteem:** Pros: * Likely more accurate representation of the official Steemit API * May have additional features or optimizations not available in steem-js Cons: * More complex and heavier-weight library * May require more setup and configuration **steem-js:** Pros: * Lightweight and easy to use * Easier to integrate into existing projects * May be faster and more efficient than dsteem due to its smaller footprint Cons: * May not provide all the features and functionality of the official Steemit API * Can be less accurate or reliable, especially if not properly configured **Library Descriptions** 1. **dsteem**: A JavaScript library that provides a API to interact with the Steemit blockchain. It's likely maintained by the Steemit community. 2. **steem-js**: A lightweight JavaScript wrapper for the Steemit API, which is designed to be easier to use than the official API. **Special JS Features or Syntax** None mentioned in this benchmark. **Other Alternatives** If you're looking for alternatives to these libraries, you may consider: * Using the official Steemit API directly (although this might require more setup and configuration) * Other JavaScript wrappers or libraries that provide similar functionality, such as `steem-cli` or `steem-js-next` * Using a different programming language, such as Python or Java, for interacting with the Steemit blockchain. Keep in mind that each alternative will have its own pros and cons, and may require additional setup and configuration.
Related benchmarks:
SJCL sym vs asym
Indexof > or !==
date diff
a Web Encrypt API (Decrypt)
Test String Compare
Comments
Confirm delete:
Do you really want to delete benchmark?