Benchmarks consist in the past top entries in js1k contest. For each one, the table shows the uncompressed byte size, along with the results obtained by JSCrush and the successive versions of RegPack.
Code sample | Uncompressed | JSCrush | RegPack | ||||
---|---|---|---|---|---|---|---|
v1 | v2 | v3 | v4 | v5 | |||
(2010) Christmas Tree | 1024 | 986 | 965 | 965 | 965 | 965 | 965 |
(2012) A rose is a rose | 1024 | 965 | 945 | 945 | 943 | 936 | 936 |
(2012) Autumn Evening | 2009 | 1021 | 1002 | 1002 | 957 | 955 | 955 |
(2012) Mine[love]craft | 1479 | 1019 | 1000 | 998 | 994 | 994 | 994 |
(2013) 3D City tour | 1176 | 1021 | 1000 | 1000 | 1000 | 1000 | 1000 |
(2013) Color Factors | 1411 | 1019 | 1010 | 1006 | 1006 | 982 | 982 |
(2013) Comanche | 2011 | 1017 | 989 | 984 | 983 | 976 | 976 |
(2013) Furbee | 1493 | 1019 | 995 | 994 | 992 | 992 | 985 |
(2013) Pointillism | 1289 | 1024 | 1001 | 1001 | 1000 | 996 | 996 |
(2013) Space Time Fracture | 1471 | 1024 | 1002 | 1002 | 995 | 976 | 972 |
(2013) Strange Crystals II | 1389 | 1039 | 1017 | 1017 | 1012 | 1003 | 1003 |
(2013) Synth Sphere | 1148 | 1018 | 998 | 998 | 998 | 995 | 995 |
(2013) Winter Wrap up | 1308 | 1025 | 1004 | 1004 | 1004 | 1004 | 1004 |
(2014) Flappy Dragon Classic | 1184 | 986 | 999 | 999 | 994(1) | 994(1) | 994(1) |
(2014) Highway at Night | 2046 | 1055 | 1042 | 1042 | 1035 | 1013 | 1013 |
(2014) Minecraft | 1388 | 1057 | 1025 | 1024 | 1024 | 1023 | 1023 |
(2015) Defender | 1472 | 1041 | 1025 | 1025 | 1018 | 1018 | 1018 |
(2015) Mysterious Monorail | 1280 | 1047 | 1027 | 1027 | 1027 | 1027 | 1027 |
(2015) Impossible Road | 1443 | 1049 | 1026 | 1026 | 1019 | 997 | 1002(3) |
(2016) Romanesco 2.0 | 1614 | 1105 | 1085 | 1085 | 1023 | 1023 | 1023 |
(2016) Voxeling | 1520 | 1064 | 1042 | 1040 | 1037 | 1017 | 1017 |
(2016) Firewatch | 1999 | 1068 | 1039 | 1033 | 1033 | 1029 | 1029 |
JSCrush | 1412 | 1024 | 1002 | 1002 | 1002(2) | 1000 | 991 |
(1) Preprocess+Crush get the size down to 984 in RegPack v3-v4, 980 in RegPack v5.
(2) With "variable renaming" option disabled, because of issue #27 (fixed in v4.0)
(3) An evolution of the CanvasRenderingContext2D API causes the former hash function to no longer work.
Use RegPack now - Benchmarks - Change log - How it works