Created
January 14, 2013 22:13
-
-
Save gradha/4534004 to your computer and use it in GitHub Desktop.
Nimrod test case for parsing a big json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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