-
-
Save ryanguill/b48ecbca0d20af322166 to your computer and use it in GitHub Desktop.
json serialization and gzip test
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
//data is 500 rows of fake names, with the following columns which are 916 bytes long | |
ID, gender, title, givenname, middleinitial, surname, streetaddress, city, state, zipcode, country, countryfull, emailaddress, username, password, telephonenumber, maidenname, birthday, cctype, ccnumber, cvv2, ccexpires, nationalid, upstracking, occupation, company, vehicle, domain, bloodtype, pounds, kilograms, feetinches, centimeters, guid, latitude, longitude | |
//default serializeJSON | |
23264369 serializeJSON-default.json | |
//default serializeJSON after gzip //56.3% reduction in size | |
10177460 serializeJSON-default.json.gzip | |
//serializeJSON after using taffy's queryToArray | |
43363946 serializeJSON-qta.json | |
//serializeJSON after using taffy's queryToArray after gzip //72.6% reduction in size | |
11912704 serializeJSON-qta.json.gzip | |
default vs gta without gzip is 46.4% smaller | |
default vs gta with gzip is 14.6% smaller | |
//data is 500 rows of fake names, with the following columns which are 916 bytes long | |
a through aj, 36 columns still | |
//default serializeJSON | |
23264121 serializeJSON-default.json | |
//default serializeJSON after gzip //56.3% reduction in size | |
10177266 serializeJSON-default.json.gzip | |
//serializeJSON after using taffy's queryToArray | |
30963946 serializeJSON-qta.json | |
//serializeJSON after using taffy's queryToArray after gzip //64.0% reduction in size | |
11150385 serializeJSON-qta.json.gzip | |
default vs gta without gzip is 24.9% smaller | |
default vs gta with gzip is 8.8% smaller |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment