Skip to content

Instantly share code, notes, and snippets.

View fistons's full-sized avatar

Eric fistons

View GitHub Profile
use std::{collections::HashMap, fs};
fn parse(input: &str) -> Vec<usize> {
input
.lines()
.flat_map(|x| x.split_whitespace())
.flat_map(|x| x.parse::<usize>())
.collect::<Vec<usize>>()
}
Implementation Peak RAM usage in Mib Peak CPU usage in %
rust 22 23.8
spring 283 60.8
python 60.4 69
groovy 124 52.4
reactive spring 213 44
clojure 177 40.5
go 40.6 45.6