move smallintmap to oldsmallintmap
This commit is contained in:
parent
9ba7114515
commit
70855f5a07
9 changed files with 23 additions and 22 deletions
|
|
@ -8,11 +8,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// Microbenchmark for the smallintmap library
|
||||
// Microbenchmark for the oldsmallintmap library
|
||||
|
||||
extern mod std;
|
||||
use std::smallintmap;
|
||||
use std::smallintmap::SmallIntMap;
|
||||
use std::oldsmallintmap;
|
||||
use std::oldsmallintmap::SmallIntMap;
|
||||
use io::WriterUtil;
|
||||
|
||||
fn append_sequential(min: uint, max: uint, map: SmallIntMap<uint>) {
|
||||
|
|
@ -43,7 +43,7 @@ fn main() {
|
|||
let mut appendf = 0.0;
|
||||
|
||||
for uint::range(0u, rep) |_r| {
|
||||
let map = smallintmap::mk();
|
||||
let map = oldsmallintmap::mk();
|
||||
let start = std::time::precise_time_s();
|
||||
append_sequential(0u, max, map);
|
||||
let mid = std::time::precise_time_s();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue