Skip to content

Instantly share code, notes, and snippets.

View coriolinus's full-sized avatar

Peter Goodspeed-Niklaus coriolinus

View GitHub Profile
@coriolinus
coriolinus / bin.rs
Last active June 6, 2022 05:48
Rust threaded code vs. Python's GIL: benchmarking using code from Advent of Code 2015
//! Edited version of bin.rs, hard-coding a number of cores to use instead of depending on the default,
//! which reports the total number of cores including virtual ones.
extern crate util;
use util::get_line_input;
extern crate day4lib;
use day4lib::mine_coin_with_conf;
use day4lib::CoinMiningConfig;