Last active
November 22, 2018 08:39
-
-
Save RyanKung/e9fdddfdaff1b687bc494af45aeccc2d to your computer and use it in GitHub Desktop.
md5 bench test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use md5; | |
use std::time::SystemTime; | |
use rayon::prelude::*; | |
fn main() { | |
let now = SystemTime::now(); | |
(13200000000 as i64 .. 18900099999 as i64).into_par_iter().map( | |
|d| { | |
print!("[{:?}]{} with hash: {:?}\n", | |
SystemTime::now().duration_since(now).unwrap(), | |
d, | |
md5::compute(d.to_string())); | |
} | |
).count(); | |
} |
Author
RyanKung
commented
Nov 22, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment