Menu

#Jiff

2 posts

Feed·
2 of 2 posts
77 ns vs 31 ns: jiff 1.0 is not the fastest datetime lib
🖼️
0Read More

77 ns vs 31 ns: jiff 1.0 is not the fastest datetime lib

DEV Community: rust·frank chu·17 days ago
#YgqFc2bm
#devtorust#devto#dev#jiff#time

jiff 1.0 parses RFC3339 in 77 ns. time does it in 31, chrono in 42. I benchmarked all three — and the error messages are where jiff wins by a distance.

15s
10 DST traps, 10 passes: I ran Jiff 1.0 against chrono
🖼️
0Read More

10 DST traps, 10 passes: I ran Jiff 1.0 against chrono

DEV Community: rust·frank chu·19 days ago
#euRWH9BS
#devtorust#devto#dev#chrono#pass

Jiff 1.0 passed all 10 of my daylight-saving traps. Chrono got them right too — except Duration::days(1), which silently means the wrong thing.

15s