… | |
… | |
1111 | about three times faster on decoding, and over forty times faster |
1111 | about three times faster on decoding, and over forty times faster |
1112 | than JSON, even with pretty-printing and key sorting. It also compares |
1112 | than JSON, even with pretty-printing and key sorting. It also compares |
1113 | favourably to Storable for small amounts of data. |
1113 | favourably to Storable for small amounts of data. |
1114 | |
1114 | |
1115 | Using a longer test string (roughly 18KB, generated from Yahoo! Locals |
1115 | Using a longer test string (roughly 18KB, generated from Yahoo! Locals |
1116 | search API (http://nanoref.com/yahooapis/mgPdGg): |
1116 | search API (http://dist.schmorp.de/misc/yahoo.json). |
1117 | |
1117 | |
1118 | module | encode | decode | |
1118 | module | encode | decode | |
1119 | -----------|------------|------------| |
1119 | -----------|------------|------------| |
1120 | JSON 1.x | 55.260 | 34.971 | |
1120 | JSON 1.x | 55.260 | 34.971 | |
1121 | JSON::DWIW | 825.228 | 1082.513 | |
1121 | JSON::DWIW | 825.228 | 1082.513 | |