Skip to content

Instantly share code, notes, and snippets.

View devplayg's full-sized avatar
💭
I may be slow to respond.

Devplayg devplayg

💭
I may be slow to respond.
  • Developer Playground
  • Republic of Korea
View GitHub Profile
@evalphobia
evalphobia / README.md
Last active April 22, 2025 12:37
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