/encoding-string-intermediary-test

Testing encoding size when forced to go through a UTF string

Primary LanguageJavaApache License 2.0Apache-2.0

encoding-string-intermediary-test

Testing encoding size when forced to go through a UTF string (i.e. bytes -> UTF-8 String -> UTF-8 bytes )

Output:

long direct:                800
UTF-8 bytes of .toString(): 1900
UTF-8 bytes of Base:16:     1600
UTF-8 bytes of Base:17:     1600
UTF-8 bytes of Base:18:     1600
UTF-8 bytes of Base:19:     1500
UTF-8 bytes of Base:20:     1500
UTF-8 bytes of Base:21:     1500
UTF-8 bytes of Base:22:     1500
UTF-8 bytes of Base:23:     1400
UTF-8 bytes of Base:24:     1400
UTF-8 bytes of Base:25:     1400
UTF-8 bytes of Base:26:     1400
UTF-8 bytes of Base:27:     1400
UTF-8 bytes of Base:28:     1400
UTF-8 bytes of Base:29:     1300
UTF-8 bytes of Base:30:     1300
UTF-8 bytes of Base:31:     1300
UTF-8 bytes of Base:32:     1300
UTF-8 bytes of Base:33:     1300
UTF-8 bytes of Base:34:     1300
UTF-8 bytes of Base:35:     1300
UTF-8 bytes of Base:36:     1300
UTF-8 bytes of Base:37:     1300
UTF-8 bytes of Base:38:     1300
UTF-8 bytes of Base:39:     1200
UTF-8 bytes of Base:40:     1200
UTF-8 bytes of Base:41:     1200
UTF-8 bytes of Base:42:     1200
UTF-8 bytes of Base:43:     1200
UTF-8 bytes of Base:44:     1200
UTF-8 bytes of Base:45:     1200
UTF-8 bytes of Base:46:     1200
UTF-8 bytes of Base:47:     1200
UTF-8 bytes of Base:48:     1200
UTF-8 bytes of Base:49:     1200
UTF-8 bytes of Base:50:     1200
UTF-8 bytes of Base:51:     1200
UTF-8 bytes of Base:52:     1200
UTF-8 bytes of Base:53:     1100
UTF-8 bytes of Base:54:     1100
UTF-8 bytes of Base:55:     1100
UTF-8 bytes of Base:56:     1100
UTF-8 bytes of Base:57:     1100
UTF-8 bytes of Base:58:     1100
UTF-8 bytes of Base:59:     1100
UTF-8 bytes of Base:60:     1100
UTF-8 bytes of Base:61:     1100
UTF-8 bytes of Base:62:     1100
UTF-8 bytes of Base:63:     1100
UTF-8 bytes of Base:64:     1100
UTF-8 bytes of Base:65:     1100
UTF-8 bytes of Base:66:     1100
UTF-8 bytes of Base:67:     1100
UTF-8 bytes of Base:68:     1100
UTF-8 bytes of Base:69:     1100
UTF-8 bytes of Base:70:     1100
UTF-8 bytes of Base:71:     1100
UTF-8 bytes of Base:72:     1100
UTF-8 bytes of Base:73:     1100
UTF-8 bytes of Base:74:     1100
UTF-8 bytes of Base:75:     1100
UTF-8 bytes of Base:76:     1100
UTF-8 bytes of Base:77:     1100
UTF-8 bytes of Base:78:     1100
UTF-8 bytes of Base:79:     1000
UTF-8 bytes of Base:80:     1000
UTF-8 bytes of Base:81:     1000
UTF-8 bytes of Base:82:     1000
UTF-8 bytes of Base:83:     1000
UTF-8 bytes of Base:84:     1000
UTF-8 bytes of Base:85:     1000
UTF-8 bytes of Base:86:     1000
UTF-8 bytes of Base:87:     1000
UTF-8 bytes of Base:88:     1000
UTF-8 bytes of Base:89:     1000
UTF-8 bytes of Base:90:     1000
UTF-8 bytes of Base:91:     1000
UTF-8 bytes of Base:92:     1000
UTF-8 bytes of Base:93:     1000
UTF-8 bytes of Base:94:     1000
UTF-8 bytes of Base:95:     1000
UTF-8 bytes of Base:96:     1000
UTF-8 bytes of Base:97:     1000
UTF-8 bytes of Base:98:     1000
UTF-8 bytes of Base:99:     1000
UTF-8 bytes of Base:100:     1000
UTF-8 bytes of Base:101:     1000
UTF-8 bytes of Base:102:     1000
UTF-8 bytes of Base:103:     1000
UTF-8 bytes of Base:104:     1000
UTF-8 bytes of Base:105:     1000
UTF-8 bytes of Base:106:     1000
UTF-8 bytes of Base:107:     1000
UTF-8 bytes of Base:108:     1000
UTF-8 bytes of Base:109:     1000
UTF-8 bytes of Base:110:     1000
UTF-8 bytes of Base:111:     1000
UTF-8 bytes of Base:112:     1000
UTF-8 bytes of Base:113:     1000
UTF-8 bytes of Base:114:     1000
UTF-8 bytes of Base:115:     1000
UTF-8 bytes of Base:116:     1000
UTF-8 bytes of Base:117:     1000
UTF-8 bytes of Base:118:     1000
UTF-8 bytes of Base:119:     1000
UTF-8 bytes of Base:120:     1000
UTF-8 bytes of Base:121:     1000
UTF-8 bytes of Base:122:     1000
UTF-8 bytes of Base:123:     1000
UTF-8 bytes of Base:124:     1000
UTF-8 bytes of Base:125:     1000
UTF-8 bytes of Base:126:     1000
UTF-8 bytes of Base:127:     1000
UTF-8 bytes of Base:128:     900