Skip to content

Instantly share code, notes, and snippets.

View slotix's full-sized avatar
🕷️
Working from home

Dmitry Narizhnykh slotix

🕷️
Working from home
View GitHub Profile
@evalphobia
evalphobia / README.md
Last active February 22, 2024 18:28
Golang Benchmark: gob vs json

tl;dr

  • JSON is faster for small size data
    • map (key size < 50 and Unmarshalling intensive workload)
    • single struct
  • gob is faster for big size data
    • map (key size > 50 or Marshalling intensive workload)
    • slice

(old) about