pacman82 / atoi-rs

Parse integers directly from `[u8]` slices in safe code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

benchmark fidelity

gilescope opened this issue · comments

I'm just looking at the benchmark and it seems a slightly unfair comparison as the benchmark is creating a string which requires allocation. It might be fairer to compare it to parsing from a &str like this: "1996".parse::<u32>(); ?

My bad that is a &str. Sorry misread!