2016-05-31 15:18:35 +02:00
|
|
|
Benchmarking
|
|
|
|
============
|
|
|
|
|
2017-12-22 06:09:04 +01:00
|
|
|
Dash Core has an internal benchmarking framework, with benchmarks
|
2018-08-02 16:22:47 +02:00
|
|
|
for cryptographic algorithms (e.g. SHA1, SHA256, SHA512, RIPEMD160), as well as the rolling bloom filter.
|
2016-05-31 15:18:35 +02:00
|
|
|
|
2018-01-22 14:44:31 +01:00
|
|
|
Running
|
|
|
|
---------------------
|
2018-01-16 08:29:17 +01:00
|
|
|
After compiling Dash Core, the benchmarks can be run with:
|
2018-01-22 14:44:31 +01:00
|
|
|
|
|
|
|
src/bench/bench_dash
|
2016-05-31 15:18:35 +02:00
|
|
|
|
|
|
|
The output will look similar to:
|
|
|
|
```
|
2021-06-26 12:03:16 +02:00
|
|
|
| ns/byte | byte/s | error % | benchmark
|
|
|
|
|--------------------:|--------------------:|--------:|:----------------------------------------------
|
|
|
|
| 64.13 | 15,592,356.01 | 0.1% | `Base58CheckEncode`
|
|
|
|
| 24.56 | 40,722,672.68 | 0.2% | `Base58Decode`
|
|
|
|
...
|
2016-05-31 15:18:35 +02:00
|
|
|
```
|
|
|
|
|
2018-01-22 14:44:31 +01:00
|
|
|
Help
|
|
|
|
---------------------
|
|
|
|
`-?` will print a list of options and exit:
|
|
|
|
|
2020-04-06 18:56:32 +02:00
|
|
|
src/bench/bench_dash -?
|
2018-01-22 14:44:31 +01:00
|
|
|
|
|
|
|
Notes
|
|
|
|
---------------------
|
2016-05-31 15:18:35 +02:00
|
|
|
More benchmarks are needed for, in no particular order:
|
|
|
|
- Script Validation
|
|
|
|
- CCoinDBView caching
|
|
|
|
- Coins database
|
|
|
|
- Memory pool
|
|
|
|
- Wallet coin selection
|