Instantly share code, notes, and snippets.

@vdeturckheim /sum_run.rs Secret
Created Jul 11, 2018

Embed
What would you like to do?
pub fn sum(a: Vec<i32>) -> i32 {
a.iter().sum()
}
pub fn run() {
for i in 0..10000 {
sum(vec![1, 2, 3, 4, 5, 6, 7, 8, 9]);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment