Update benchmark
* Add asm, though it doesn't make it faster. TODO: use avx instructions. * Do 10x less hashes, since sha256 is more expensive.
This commit is contained in:
parent
6effd64ab0
commit
ba90e43f72
|
@ -104,5 +104,5 @@ $ rustup install nightly
|
|||
Run the benchmarks:
|
||||
|
||||
```bash
|
||||
$ cargo +nightly bench --features="unstable"
|
||||
$ cargo +nightly bench --features="asm,unstable"
|
||||
```
|
||||
|
|
|
@ -149,7 +149,7 @@ mod bench {
|
|||
#[bench]
|
||||
fn event_bench(bencher: &mut Bencher) {
|
||||
let start_hash = Default::default();
|
||||
let events = create_ticks(&start_hash, 100_000, 8);
|
||||
let events = create_ticks(&start_hash, 10_000, 8);
|
||||
bencher.iter(|| {
|
||||
assert!(verify_slice(&events, &start_hash));
|
||||
});
|
||||
|
@ -158,7 +158,7 @@ mod bench {
|
|||
#[bench]
|
||||
fn event_bench_seq(bencher: &mut Bencher) {
|
||||
let start_hash = Default::default();
|
||||
let events = create_ticks(&start_hash, 100_000, 8);
|
||||
let events = create_ticks(&start_hash, 10_000, 8);
|
||||
bencher.iter(|| {
|
||||
assert!(verify_slice_seq(&events, &start_hash));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue