diff_hashmap_list 0.0.1

This crate is diff tool for HashMap.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate diff_hashmap_list;

use diff_hashmap_list::{compare_hash_map, Value};
use bencher::{benchmark_group, benchmark_main, Bencher};

fn benchmark(bencher: &mut Bencher) {
    let left = [("unchanged".to_string(), 1.into()), ("removed".to_string(), 2.into()), ("changed".to_string(), Value::Int(3))].into();
    let right = [("unchanged".into(), "1".into()), ("changed".into(), 5.into()), ("added".into(), 4.into())].into();
    bencher.iter(|| compare_hash_map(&left, &right));
}

benchmark_group!(benches, benchmark);
benchmark_main!(benches);