mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
36 lines
960 B
Markdown
36 lines
960 B
Markdown
Benchmarking
|
|
============
|
|
|
|
Dash Core has an internal benchmarking framework, with benchmarks
|
|
for cryptographic algorithms (e.g. SHA1, SHA256, SHA512, RIPEMD160), as well as the rolling bloom filter.
|
|
|
|
Running
|
|
---------------------
|
|
After compiling Dash Core, the benchmarks can be run with:
|
|
|
|
src/bench/bench_dash
|
|
|
|
The output will look similar to:
|
|
```
|
|
| ns/byte | byte/s | error % | benchmark
|
|
|--------------------:|--------------------:|--------:|:----------------------------------------------
|
|
| 64.13 | 15,592,356.01 | 0.1% | `Base58CheckEncode`
|
|
| 24.56 | 40,722,672.68 | 0.2% | `Base58Decode`
|
|
...
|
|
```
|
|
|
|
Help
|
|
---------------------
|
|
`-?` will print a list of options and exit:
|
|
|
|
src/bench/bench_dash -?
|
|
|
|
Notes
|
|
---------------------
|
|
More benchmarks are needed for, in no particular order:
|
|
- Script Validation
|
|
- CCoinDBView caching
|
|
- Coins database
|
|
- Memory pool
|
|
- Wallet coin selection
|