mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-24 20:47:17 +00:00
4331834003
* Move tests -> testing * Directory restructure * Update Cargo.toml during restructure * Update Makefile during restructure * Fix arbitrary path
16 lines
333 B
Rust
16 lines
333 B
Rust
//! Encode and decode a list many times.
|
|
//!
|
|
//! Useful for `cargo flamegraph`.
|
|
|
|
use ssz::{Decode, Encode};
|
|
|
|
fn main() {
|
|
let vec: Vec<u64> = vec![4242; 8196];
|
|
|
|
let output: Vec<Vec<u64>> = (0..40_000)
|
|
.map(|_| Vec::from_ssz_bytes(&vec.as_ssz_bytes()).unwrap())
|
|
.collect();
|
|
|
|
println!("{}", output.len());
|
|
}
|