Skip to content

Instantly share code, notes, and snippets.

@gradha
Created January 14, 2013 22:13
Show Gist options
  • Save gradha/4534004 to your computer and use it in GitHub Desktop.
Save gradha/4534004 to your computer and use it in GitHub Desktop.
Nimrod test case for parsing a big json
import json, times, strutils
when isMainModule:
echo "Loading and parsing json"
let t1 = epochTime()
let j = parseFile("nimrod_performance.json")
assert (j.kind == JObject)
let t2 = epochTime()
echo "Took ", formatFloat(t2 - t1, ffDecimal, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment