Skip to content

Instantly share code, notes, and snippets.

View devplayg's full-sized avatar

Devplayg devplayg

  • Developer Playground
  • Republic of Korea
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