🚧 wip
parent
247d6b7a24
commit
b9865b7174
|
@ -15,11 +15,14 @@ fn main () {
|
|||
println! ("{}: {} ms", label, (stop - start).as_millis ());
|
||||
}
|
||||
|
||||
timer (|| n_body::<BTreeTable> (100000), "BTreeTable");
|
||||
timer (|| n_body::<BTreeTable2> (100000), "BTreeTable2");
|
||||
timer (|| n_body::<HashTable> (100000), "HashTable");
|
||||
timer (|| n_body_2::<HashTable2> (100000), "HashTable2");
|
||||
// timer (|| n_body::<BTreeTable> (100000), "BTreeTable");
|
||||
// timer (|| n_body::<BTreeTable2> (100000), "BTreeTable2");
|
||||
// timer (|| n_body::<HashTable> (100000), "HashTable");
|
||||
// timer (|| n_body_2::<HashTable2> (100000), "HashTable2");
|
||||
|
||||
// Fastest on my system, at 83 ms
|
||||
timer (|| n_body_2::<BTreeTable3> (100000), "BTreeTable3");
|
||||
timer (|| n_body_2::<BTreeTable3> (500000), "BTreeTable3");
|
||||
}
|
||||
|
||||
trait Table {
|
||||
|
|
Loading…
Reference in New Issue