Skip to content

Instantly share code, notes, and snippets.

View Yoric's full-sized avatar

David Teller Yoric

View GitHub Profile
@Yoric
Yoric / multistream+inner.csv
Created May 21, 2018 14:40
Namespace string enums
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+GZip/BinAST, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+Brotli/BinAST, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, BinAST+BZip2/BinAST
"tests/data/frameworks/angular.1.6.5.min.js", 168517, 58770, 51589, 52328, 69152, 0.4103562251879632, 69184, 1.1771992513187, 1.000462748727441, 69157, 1.3405377115276513, 1.0000723044886626, 69698, 1.3319446567803088, 1.007895650161962
"tests/data/frameworks/backbone.1.3.3.min.js", 23355, 7576, 6861, 7231, 9794, 0.41935345750374653, 9757, 1.287882787750792, 0.9962221768429651, 9694, 1.4129135694505175, 0.9897896671431489, 10149, 1.4035403125432167, 1.0362466816418214
"tests/data/frameworks/bootstrap.4.1.0.min.js", 50676, 14016, 12202, 13247, 17050, 0.33645118004578106, 17010, 1.21361301369863, 0.9976539589442815, 16942, 1.388460908047861, 0.9936656891495601, 17412, 1.3144108099947158, 1.0212316715542522
"tests/data/fr
@Yoric
Yoric / multistream+inner.csv
Created May 21, 2018 14:04
Multistream + Debruijn + Inner gzip compression
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+GZip/BinAST, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+Brotli/BinAST, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, BinAST+BZip2/BinAST
"tests/data/frameworks/angular.1.6.5.min.js", 168517, 58770, 51589, 52328, 71356, 0.42343502435956015, 71403, 1.2149566105155691, 1.0006586692079154, 71361, 1.3832599972862432, 1.0000700711923314, 71952, 1.375019110227794, 1.008352486125904
"tests/data/frameworks/backbone.1.3.3.min.js", 23355, 7576, 6861, 7231, 10054, 0.43048597730678656, 10020, 1.32259767687434, 0.9966182613885021, 9957, 1.4512461740271096, 0.9903520986671971, 10481, 1.4494537408380583, 1.0424706584444003
"tests/data/frameworks/bootstrap.4.1.0.min.js", 50676, 14016, 12202, 13247, 17758, 0.3504222906306733, 17750, 1.266409817351598, 0.9995494988174344, 17647, 1.4462383215866252, 0.9937492960919022, 18131, 1.3686872499433833, 1.0210046176371212
"tests/d
@Yoric
Yoric / multistream.csv
Created May 21, 2018 13:57
Multistream + Debruijn
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+GZip/BinAST, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+Brotli/BinAST, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, BinAST+BZip2/BinAST
"tests/data/frameworks/angular.1.6.5.min.js", 168517, 58770, 51589, 52328, 173690, 1.0306971996890522, 72554, 1.2345414327037605, 0.41772122747423573, 65391, 1.2675376533757197, 0.3764810869940699, 75116, 1.435483870967742, 0.43247164488456447
"tests/data/frameworks/backbone.1.3.3.min.js", 23355, 7576, 6861, 7231, 20226, 0.8660244059087989, 10261, 1.3544086589229145, 0.5073173143478691, 8971, 1.3075353447019384, 0.44353802036982104, 10866, 1.5026967224450283, 0.537229308810442
"tests/data/frameworks/bootstrap.4.1.0.min.js", 50676, 14016, 12202, 13247, 40002, 0.7893677480464125, 18132, 1.293664383561644, 0.4532773361331933, 16166, 1.3248647762661858, 0.40412979351032446, 19120, 1.4433456631690194, 0.4779761011949403
"te
@Yoric
Yoric / multistream.csv
Created May 18, 2018 10:58
Multistream
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+GZip/BinAST, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+Brotli/BinAST, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, BinAST+BZip2/BinAST
"tests/data/frameworks/chart.2.7.2.min.js", 159638, 47138, 40705, 42784, 132086, 0.8274095140254827, 55944, 1.1868131868131868, 0.42354223763305726, 51276, 1.2596978258199238, 0.38820162621322474, 59572, 1.3923896783844427, 0.45100919098163317
"tests/data/frameworks/jquery.3.3.1.min.js", 86927, 30308, 27501, 27960, 77682, 0.8936463929504067, 38624, 1.2743830011878052, 0.4972065600782678, 35109, 1.2766444856550672, 0.45195798254421876, 39778, 1.4226752503576539, 0.5120619963440695
"tests/data/frameworks/moment.2.22.1.min.js", 51638, 16777, 15244, 15985, 46480, 0.9001123203842132, 21768, 1.297490612147583, 0.46833046471600687, 19797, 1.2986748884807138, 0.4259251290877797, 23051, 1.4420394119487019, 0.49593373493975906
"
@Yoric
Yoric / trp-lru.csv
Created May 15, 2018 13:10
TreeRePair, with LRU numbering scheme
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+GZip/BinAST, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+Brotli/BinAST, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, BinAST+BZip2/BinAST
"tests/data/frameworks/chart.2.7.2.min.js", 159638, 47138, 40705, 42784, 95103, 0.5957416154048535, 75745, 1.6068776783062497, 0.7964522675415077, 72636, 1.7844490848790076, 0.7637613955395729, 77344, 1.8077786088257293, 0.813265617278109
"tests/data/frameworks/riot.3.9.3.min.js", 25243, 10696, 9748, 10408, 23286, 0.9224735570257101, 17921, 1.675486163051608, 0.7696040539379885, 16718, 1.7150184653262208, 0.7179421111397406, 17971, 1.726652574942352, 0.7717512668556215
"tests/data/frameworks/moment.2.22.1.min.js", 51638, 16777, 15244, 15985, 35512, 0.6877106007203997, 25784, 1.5368659474280264, 0.7260644289254337, 24408, 1.6011545526108633, 0.687316963280018, 26309, 1.6458554895214264, 0.7408481640009011
"tests/data/fr
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Collecting data for efficient binary representation.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Generating efficient binary representation.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label (leaf) appears 1 times, rank 0, representing as 141.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label (leaf) appears 1 times, rank 1, representing as 140.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label (leaf) appears 1 times, rank 2, representing as 139.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label Script appears 1 times, rank 3, representing as 138.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label ExpressionStatement(...CallExpression(...)...) appears 1 times, rank 4, representing as 137.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label (leaf) appears 1 times, rank 5, representing as 136.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label UnaryExpression appears 1 times, rank 6, representing as 135.
DEBUG 2018-05-14T20:48:17Z: binjs_io::repair: Label
@Yoric
Yoric / trp-2.csv
Created May 14, 2018 20:35
Rank 2-limited compression with TreeRePair
File Source (b) Source+Gzip (b) Source+Brotli (b) Source+BZip2 (b) BinAST (b) BinAST/Source BinAST+GZip (b) BinAST+GZip/Source+GZip BinAST+GZip/BinAST BinAST+Brotli (b) BinAST+Brotli/Source+Brotli BinAST+Brotli/BinAST BinAST+BZip2 (b) BinAST+BZip2/Source+BZip2 BinAST+BZip2/BinAST
tests/data/frameworks/react-dom.production.16.3.2.min.js 102609 32776 28650 29648 73278 0.7141478817647575 52199 1.5925982426165486 0.7123420399028357 48904 1.7069458987783594 0.6673762930210977 50576 1.7058823529411764 0.690193509648189
tests/data/frameworks/angular.1.6.5.min.js 168517 58770 51589 52328 116642 0.6921675557955577 91085 1.5498553683852305 0.7808936746626429 85322 1.6538797030374692 0.7314860856295331 88551 1.692229781378994 0.7591690814629379
tests/data/frameworks/backbone.1.3.3.min.js 23355 7576 6861 7231 18314 0.7841575679725968 13305 1.7562038014783528 0.7264933930326526 12441 1.8132925229558374 0.6793163699901714 13035 1.8026552344074125 0.711750573
@Yoric
Yoric / trp.csv
Created May 14, 2018 19:06
Compression with TreeRePair v1
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+GZip/BinAST, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+Brotli/BinAST, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, BinAST+BZip2/BinAST
"tests/data/frameworks/backbone.1.3.3.min.js", 23355, 7576, 6861, 7231, 16818, 0.7201027617212589, 12500, 1.649947201689546, 0.7432512783921988, 11699, 1.705145022591459, 0.6956237364728267, 12347, 1.7075093348084636, 0.7341538827446783
"tests/data/frameworks/polymer.0.5.6.min.js", 123402, 36789, 32602, 33179, 73230, 0.5934263626197306, 55950, 1.5208350322107151, 0.7640311347808275, 52656, 1.61511563707748, 0.7190495698484228, 54089, 1.6302179089182918, 0.7386180527106377
"tests/data/frameworks/jquery.3.3.1.min.js", 86927, 30308, 27501, 27960, 60330, 0.6940306233966431, 47336, 1.5618318595750298, 0.7846179346925245, 44621, 1.6225228173520962, 0.7396154483673131, 45948, 1.6433476394849786, 0.7616111387369467
"tests/data
Statistics
Files:
Number: 13
Total source bytes: 1521306
Total uncompressed bytes: 1333123
Total compressed bytes: 1333724
Ratio: 0.88
Sections:
Grammar:
Entries: 668
@Yoric
Yoric / compression.csv
Last active April 19, 2018 06:42
BinAST Compression, sorted by gzip/gzip
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 16 columns, instead of 15 in line 4.
File, Source (b), Source+Gzip (b), Source+Brotli (b), Source+BZip2 (b), BinAST (b), BinAST/Source, BinAST+GZip (b), BinAST+GZip/Source+GZip, BinAST+Brotli (b), BinAST+Brotli/Source+Brotli, BinAST+BZip2 (b), BinAST+BZip2/Source+BZip2, Number of strings, Number of identifiers, Number of grammar entries
tests/data/facebook/concat.js,43134534,9571159,4178955,7596821,24777072,0.574413809593955,8975270,0.937741186830142,4051259,0.969443078472968,7712335,1.01520557085655,147706,3770670,58
tests/data/facebook/single/10x6WBItZMj.js,788086,149115,109006,101082,409613,0.519756727057707,148143,0.993481541092446,126634,1.16171586885126,129006,1.27625096456342,6423,47514,52
tests/data/facebook/single/hgw22H68N_l.js,2317747,458150,329046,337616,1280072,0.552291514129886,465650,1.01637018443741,380103,1.15516675480024,400149,1.18521930240273,16250,171794,54
tests/data/facebook/single/t_FKyKc7pIv.js,503494,106108,81330,78442,317419,0.63043253742845,110106,1.03767859162363,94246,1.15880978728636,97523,1.2432497896535,4387,4284