main
_ 2023-10-02 12:13:54 -05:00
parent 247d6b7a24
commit b9865b7174
1 changed files with 7 additions and 4 deletions

View File

@ -15,11 +15,14 @@ fn main () {
println! ("{}: {} ms", label, (stop - start).as_millis ()); println! ("{}: {} ms", label, (stop - start).as_millis ());
} }
timer (|| n_body::<BTreeTable> (100000), "BTreeTable"); // timer (|| n_body::<BTreeTable> (100000), "BTreeTable");
timer (|| n_body::<BTreeTable2> (100000), "BTreeTable2"); // timer (|| n_body::<BTreeTable2> (100000), "BTreeTable2");
timer (|| n_body::<HashTable> (100000), "HashTable"); // timer (|| n_body::<HashTable> (100000), "HashTable");
timer (|| n_body_2::<HashTable2> (100000), "HashTable2"); // 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> (100000), "BTreeTable3");
timer (|| n_body_2::<BTreeTable3> (500000), "BTreeTable3");
} }
trait Table { trait Table {