Skip to content

Instantly share code, notes, and snippets.

View aLVINlEE9's full-sized avatar

Seungsoo Lee aLVINlEE9

View GitHub Profile
@aLVINlEE9
aLVINlEE9 / benchmark.rs
Last active February 15, 2024 05:51
rust benchmark
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use std::collections::{BTreeMap, HashMap};
use ahash::AHashMap;
use std::collections::VecDeque;
fn criterion_benchmark(c: &mut Criterion) {
let scales = vec![10, 100, 10_000, 100_000];
for &scale in &scales {
// BTreeMap Benchmarks
@aLVINlEE9
aLVINlEE9 / I'm an early 🐤
Last active March 15, 2024 00:02
Productive Box
🌞 Morning 28 commits █▋░░░░░░░░░░░░░░░░░░░ 8.0%
🌆 Daytime 174 commits ██████████▍░░░░░░░░░░ 49.7%
🌃 Evening 101 commits ██████░░░░░░░░░░░░░░░ 28.9%
🌙 Night 47 commits ██▊░░░░░░░░░░░░░░░░░░ 13.4%