benchmark_easyjson.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. package benchmark
  2. import (
  3. json "encoding/json"
  4. jlexer "github.com/mailru/easyjson/jlexer"
  5. jwriter "github.com/mailru/easyjson/jwriter"
  6. )
  7. var _ = json.RawMessage{} // suppress unused package warning
  8. func easyjson_decode_github_com_buger_jsonparser_benchmark_LargePayload(in *jlexer.Lexer, out *LargePayload) {
  9. in.Delim('{')
  10. for !in.IsDelim('}') {
  11. key := in.UnsafeString()
  12. in.WantColon()
  13. if in.IsNull() {
  14. in.Skip()
  15. in.WantComma()
  16. continue
  17. }
  18. switch key {
  19. case "users":
  20. in.Delim('[')
  21. if !in.IsDelim(']') {
  22. out.Users = make([]*DSUser, 0, 8)
  23. } else {
  24. out.Users = nil
  25. }
  26. for !in.IsDelim(']') {
  27. var v1 *DSUser
  28. if in.IsNull() {
  29. in.Skip()
  30. v1 = nil
  31. } else {
  32. v1 = new(DSUser)
  33. (*v1).UnmarshalEasyJSON(in)
  34. }
  35. out.Users = append(out.Users, v1)
  36. in.WantComma()
  37. }
  38. in.Delim(']')
  39. case "topics":
  40. if in.IsNull() {
  41. in.Skip()
  42. out.Topics = nil
  43. } else {
  44. out.Topics = new(DSTopicsList)
  45. (*out.Topics).UnmarshalEasyJSON(in)
  46. }
  47. default:
  48. in.SkipRecursive()
  49. }
  50. in.WantComma()
  51. }
  52. in.Delim('}')
  53. }
  54. func easyjson_encode_github_com_buger_jsonparser_benchmark_LargePayload(out *jwriter.Writer, in *LargePayload) {
  55. out.RawByte('{')
  56. first := true
  57. _ = first
  58. if !first {
  59. out.RawByte(',')
  60. }
  61. first = false
  62. out.RawString("\"users\":")
  63. out.RawByte('[')
  64. for v2, v3 := range in.Users {
  65. if v2 > 0 {
  66. out.RawByte(',')
  67. }
  68. if v3 == nil {
  69. out.RawString("null")
  70. } else {
  71. (*v3).MarshalEasyJSON(out)
  72. }
  73. }
  74. out.RawByte(']')
  75. if !first {
  76. out.RawByte(',')
  77. }
  78. first = false
  79. out.RawString("\"topics\":")
  80. if in.Topics == nil {
  81. out.RawString("null")
  82. } else {
  83. (*in.Topics).MarshalEasyJSON(out)
  84. }
  85. out.RawByte('}')
  86. }
  87. func (v *LargePayload) MarshalEasyJSON(w *jwriter.Writer) {
  88. easyjson_encode_github_com_buger_jsonparser_benchmark_LargePayload(w, v)
  89. }
  90. func (v *LargePayload) UnmarshalEasyJSON(l *jlexer.Lexer) {
  91. easyjson_decode_github_com_buger_jsonparser_benchmark_LargePayload(l, v)
  92. }
  93. func easyjson_decode_github_com_buger_jsonparser_benchmark_DSTopicsList(in *jlexer.Lexer, out *DSTopicsList) {
  94. in.Delim('{')
  95. for !in.IsDelim('}') {
  96. key := in.UnsafeString()
  97. in.WantColon()
  98. if in.IsNull() {
  99. in.Skip()
  100. in.WantComma()
  101. continue
  102. }
  103. switch key {
  104. case "topics":
  105. in.Delim('[')
  106. if !in.IsDelim(']') {
  107. out.Topics = make([]*DSTopic, 0, 8)
  108. } else {
  109. out.Topics = nil
  110. }
  111. for !in.IsDelim(']') {
  112. var v4 *DSTopic
  113. if in.IsNull() {
  114. in.Skip()
  115. v4 = nil
  116. } else {
  117. v4 = new(DSTopic)
  118. (*v4).UnmarshalEasyJSON(in)
  119. }
  120. out.Topics = append(out.Topics, v4)
  121. in.WantComma()
  122. }
  123. in.Delim(']')
  124. case "more_topics_url":
  125. out.MoreTopicsUrl = in.String()
  126. default:
  127. in.SkipRecursive()
  128. }
  129. in.WantComma()
  130. }
  131. in.Delim('}')
  132. }
  133. func easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopicsList(out *jwriter.Writer, in *DSTopicsList) {
  134. out.RawByte('{')
  135. first := true
  136. _ = first
  137. if !first {
  138. out.RawByte(',')
  139. }
  140. first = false
  141. out.RawString("\"topics\":")
  142. out.RawByte('[')
  143. for v5, v6 := range in.Topics {
  144. if v5 > 0 {
  145. out.RawByte(',')
  146. }
  147. if v6 == nil {
  148. out.RawString("null")
  149. } else {
  150. (*v6).MarshalEasyJSON(out)
  151. }
  152. }
  153. out.RawByte(']')
  154. if !first {
  155. out.RawByte(',')
  156. }
  157. first = false
  158. out.RawString("\"more_topics_url\":")
  159. out.String(in.MoreTopicsUrl)
  160. out.RawByte('}')
  161. }
  162. func (v *DSTopicsList) MarshalEasyJSON(w *jwriter.Writer) {
  163. easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopicsList(w, v)
  164. }
  165. func (v *DSTopicsList) UnmarshalEasyJSON(l *jlexer.Lexer) {
  166. easyjson_decode_github_com_buger_jsonparser_benchmark_DSTopicsList(l, v)
  167. }
  168. func easyjson_decode_github_com_buger_jsonparser_benchmark_DSTopic(in *jlexer.Lexer, out *DSTopic) {
  169. in.Delim('{')
  170. for !in.IsDelim('}') {
  171. key := in.UnsafeString()
  172. in.WantColon()
  173. if in.IsNull() {
  174. in.Skip()
  175. in.WantComma()
  176. continue
  177. }
  178. switch key {
  179. case "id":
  180. out.Id = in.Int()
  181. case "slug":
  182. out.Slug = in.String()
  183. default:
  184. in.SkipRecursive()
  185. }
  186. in.WantComma()
  187. }
  188. in.Delim('}')
  189. }
  190. func easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopic(out *jwriter.Writer, in *DSTopic) {
  191. out.RawByte('{')
  192. first := true
  193. _ = first
  194. if !first {
  195. out.RawByte(',')
  196. }
  197. first = false
  198. out.RawString("\"id\":")
  199. out.Int(in.Id)
  200. if !first {
  201. out.RawByte(',')
  202. }
  203. first = false
  204. out.RawString("\"slug\":")
  205. out.String(in.Slug)
  206. out.RawByte('}')
  207. }
  208. func (v *DSTopic) MarshalEasyJSON(w *jwriter.Writer) {
  209. easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopic(w, v)
  210. }
  211. func (v *DSTopic) UnmarshalEasyJSON(l *jlexer.Lexer) {
  212. easyjson_decode_github_com_buger_jsonparser_benchmark_DSTopic(l, v)
  213. }
  214. func easyjson_decode_github_com_buger_jsonparser_benchmark_DSUser(in *jlexer.Lexer, out *DSUser) {
  215. in.Delim('{')
  216. for !in.IsDelim('}') {
  217. key := in.UnsafeString()
  218. in.WantColon()
  219. if in.IsNull() {
  220. in.Skip()
  221. in.WantComma()
  222. continue
  223. }
  224. switch key {
  225. case "username":
  226. out.Username = in.String()
  227. default:
  228. in.SkipRecursive()
  229. }
  230. in.WantComma()
  231. }
  232. in.Delim('}')
  233. }
  234. func easyjson_encode_github_com_buger_jsonparser_benchmark_DSUser(out *jwriter.Writer, in *DSUser) {
  235. out.RawByte('{')
  236. first := true
  237. _ = first
  238. if !first {
  239. out.RawByte(',')
  240. }
  241. first = false
  242. out.RawString("\"username\":")
  243. out.String(in.Username)
  244. out.RawByte('}')
  245. }
  246. func (v *DSUser) MarshalEasyJSON(w *jwriter.Writer) {
  247. easyjson_encode_github_com_buger_jsonparser_benchmark_DSUser(w, v)
  248. }
  249. func (v *DSUser) UnmarshalEasyJSON(l *jlexer.Lexer) {
  250. easyjson_decode_github_com_buger_jsonparser_benchmark_DSUser(l, v)
  251. }
  252. func easyjson_decode_github_com_buger_jsonparser_benchmark_MediumPayload(in *jlexer.Lexer, out *MediumPayload) {
  253. in.Delim('{')
  254. for !in.IsDelim('}') {
  255. key := in.UnsafeString()
  256. in.WantColon()
  257. if in.IsNull() {
  258. in.Skip()
  259. in.WantComma()
  260. continue
  261. }
  262. switch key {
  263. case "person":
  264. if in.IsNull() {
  265. in.Skip()
  266. out.Person = nil
  267. } else {
  268. out.Person = new(CBPerson)
  269. (*out.Person).UnmarshalEasyJSON(in)
  270. }
  271. case "company":
  272. in.Delim('{')
  273. if !in.IsDelim('}') {
  274. out.Company = make(map[string]interface{})
  275. } else {
  276. out.Company = nil
  277. }
  278. for !in.IsDelim('}') {
  279. key := in.String()
  280. in.WantColon()
  281. var v7 interface{}
  282. v7 = in.Interface()
  283. (out.Company)[key] = v7
  284. in.WantComma()
  285. }
  286. in.Delim('}')
  287. default:
  288. in.SkipRecursive()
  289. }
  290. in.WantComma()
  291. }
  292. in.Delim('}')
  293. }
  294. func easyjson_encode_github_com_buger_jsonparser_benchmark_MediumPayload(out *jwriter.Writer, in *MediumPayload) {
  295. out.RawByte('{')
  296. first := true
  297. _ = first
  298. if !first {
  299. out.RawByte(',')
  300. }
  301. first = false
  302. out.RawString("\"person\":")
  303. if in.Person == nil {
  304. out.RawString("null")
  305. } else {
  306. (*in.Person).MarshalEasyJSON(out)
  307. }
  308. if !first {
  309. out.RawByte(',')
  310. }
  311. first = false
  312. out.RawString("\"company\":")
  313. out.RawByte('{')
  314. v8_first := true
  315. for v8_name, v8_value := range in.Company {
  316. if !v8_first {
  317. out.RawByte(',')
  318. }
  319. v8_first = false
  320. out.String(v8_name)
  321. out.Raw(json.Marshal(v8_value))
  322. }
  323. out.RawByte('}')
  324. out.RawByte('}')
  325. }
  326. func (v *MediumPayload) MarshalEasyJSON(w *jwriter.Writer) {
  327. easyjson_encode_github_com_buger_jsonparser_benchmark_MediumPayload(w, v)
  328. }
  329. func (v *MediumPayload) UnmarshalEasyJSON(l *jlexer.Lexer) {
  330. easyjson_decode_github_com_buger_jsonparser_benchmark_MediumPayload(l, v)
  331. }
  332. func easyjson_decode_github_com_buger_jsonparser_benchmark_CBPerson(in *jlexer.Lexer, out *CBPerson) {
  333. in.Delim('{')
  334. for !in.IsDelim('}') {
  335. key := in.UnsafeString()
  336. in.WantColon()
  337. if in.IsNull() {
  338. in.Skip()
  339. in.WantComma()
  340. continue
  341. }
  342. switch key {
  343. case "name":
  344. if in.IsNull() {
  345. in.Skip()
  346. out.Name = nil
  347. } else {
  348. out.Name = new(CBName)
  349. (*out.Name).UnmarshalEasyJSON(in)
  350. }
  351. case "github":
  352. if in.IsNull() {
  353. in.Skip()
  354. out.Github = nil
  355. } else {
  356. out.Github = new(CBGithub)
  357. (*out.Github).UnmarshalEasyJSON(in)
  358. }
  359. case "gravatar":
  360. if in.IsNull() {
  361. in.Skip()
  362. out.Gravatar = nil
  363. } else {
  364. out.Gravatar = new(CBGravatar)
  365. (*out.Gravatar).UnmarshalEasyJSON(in)
  366. }
  367. default:
  368. in.SkipRecursive()
  369. }
  370. in.WantComma()
  371. }
  372. in.Delim('}')
  373. }
  374. func easyjson_encode_github_com_buger_jsonparser_benchmark_CBPerson(out *jwriter.Writer, in *CBPerson) {
  375. out.RawByte('{')
  376. first := true
  377. _ = first
  378. if !first {
  379. out.RawByte(',')
  380. }
  381. first = false
  382. out.RawString("\"name\":")
  383. if in.Name == nil {
  384. out.RawString("null")
  385. } else {
  386. (*in.Name).MarshalEasyJSON(out)
  387. }
  388. if !first {
  389. out.RawByte(',')
  390. }
  391. first = false
  392. out.RawString("\"github\":")
  393. if in.Github == nil {
  394. out.RawString("null")
  395. } else {
  396. (*in.Github).MarshalEasyJSON(out)
  397. }
  398. if !first {
  399. out.RawByte(',')
  400. }
  401. first = false
  402. out.RawString("\"gravatar\":")
  403. if in.Gravatar == nil {
  404. out.RawString("null")
  405. } else {
  406. (*in.Gravatar).MarshalEasyJSON(out)
  407. }
  408. out.RawByte('}')
  409. }
  410. func (v *CBPerson) MarshalEasyJSON(w *jwriter.Writer) {
  411. easyjson_encode_github_com_buger_jsonparser_benchmark_CBPerson(w, v)
  412. }
  413. func (v *CBPerson) UnmarshalEasyJSON(l *jlexer.Lexer) {
  414. easyjson_decode_github_com_buger_jsonparser_benchmark_CBPerson(l, v)
  415. }
  416. func easyjson_decode_github_com_buger_jsonparser_benchmark_CBName(in *jlexer.Lexer, out *CBName) {
  417. in.Delim('{')
  418. for !in.IsDelim('}') {
  419. key := in.UnsafeString()
  420. in.WantColon()
  421. if in.IsNull() {
  422. in.Skip()
  423. in.WantComma()
  424. continue
  425. }
  426. switch key {
  427. case "full_name":
  428. out.FullName = in.String()
  429. default:
  430. in.SkipRecursive()
  431. }
  432. in.WantComma()
  433. }
  434. in.Delim('}')
  435. }
  436. func easyjson_encode_github_com_buger_jsonparser_benchmark_CBName(out *jwriter.Writer, in *CBName) {
  437. out.RawByte('{')
  438. first := true
  439. _ = first
  440. if !first {
  441. out.RawByte(',')
  442. }
  443. first = false
  444. out.RawString("\"full_name\":")
  445. out.String(in.FullName)
  446. out.RawByte('}')
  447. }
  448. func (v *CBName) MarshalEasyJSON(w *jwriter.Writer) {
  449. easyjson_encode_github_com_buger_jsonparser_benchmark_CBName(w, v)
  450. }
  451. func (v *CBName) UnmarshalEasyJSON(l *jlexer.Lexer) {
  452. easyjson_decode_github_com_buger_jsonparser_benchmark_CBName(l, v)
  453. }
  454. func easyjson_decode_github_com_buger_jsonparser_benchmark_CBGithub(in *jlexer.Lexer, out *CBGithub) {
  455. in.Delim('{')
  456. for !in.IsDelim('}') {
  457. key := in.UnsafeString()
  458. in.WantColon()
  459. if in.IsNull() {
  460. in.Skip()
  461. in.WantComma()
  462. continue
  463. }
  464. switch key {
  465. case "followers":
  466. out.Followers = in.Int()
  467. default:
  468. in.SkipRecursive()
  469. }
  470. in.WantComma()
  471. }
  472. in.Delim('}')
  473. }
  474. func easyjson_encode_github_com_buger_jsonparser_benchmark_CBGithub(out *jwriter.Writer, in *CBGithub) {
  475. out.RawByte('{')
  476. first := true
  477. _ = first
  478. if !first {
  479. out.RawByte(',')
  480. }
  481. first = false
  482. out.RawString("\"followers\":")
  483. out.Int(in.Followers)
  484. out.RawByte('}')
  485. }
  486. func (v *CBGithub) MarshalEasyJSON(w *jwriter.Writer) {
  487. easyjson_encode_github_com_buger_jsonparser_benchmark_CBGithub(w, v)
  488. }
  489. func (v *CBGithub) UnmarshalEasyJSON(l *jlexer.Lexer) {
  490. easyjson_decode_github_com_buger_jsonparser_benchmark_CBGithub(l, v)
  491. }
  492. func easyjson_decode_github_com_buger_jsonparser_benchmark_CBGravatar(in *jlexer.Lexer, out *CBGravatar) {
  493. in.Delim('{')
  494. for !in.IsDelim('}') {
  495. key := in.UnsafeString()
  496. in.WantColon()
  497. if in.IsNull() {
  498. in.Skip()
  499. in.WantComma()
  500. continue
  501. }
  502. switch key {
  503. case "avatars":
  504. in.Delim('[')
  505. if !in.IsDelim(']') {
  506. out.Avatars = make([]*CBAvatar, 0, 8)
  507. } else {
  508. out.Avatars = nil
  509. }
  510. for !in.IsDelim(']') {
  511. var v9 *CBAvatar
  512. if in.IsNull() {
  513. in.Skip()
  514. v9 = nil
  515. } else {
  516. v9 = new(CBAvatar)
  517. (*v9).UnmarshalEasyJSON(in)
  518. }
  519. out.Avatars = append(out.Avatars, v9)
  520. in.WantComma()
  521. }
  522. in.Delim(']')
  523. default:
  524. in.SkipRecursive()
  525. }
  526. in.WantComma()
  527. }
  528. in.Delim('}')
  529. }
  530. func easyjson_encode_github_com_buger_jsonparser_benchmark_CBGravatar(out *jwriter.Writer, in *CBGravatar) {
  531. out.RawByte('{')
  532. first := true
  533. _ = first
  534. if !first {
  535. out.RawByte(',')
  536. }
  537. first = false
  538. out.RawString("\"avatars\":")
  539. out.RawByte('[')
  540. for v10, v11 := range in.Avatars {
  541. if v10 > 0 {
  542. out.RawByte(',')
  543. }
  544. if v11 == nil {
  545. out.RawString("null")
  546. } else {
  547. (*v11).MarshalEasyJSON(out)
  548. }
  549. }
  550. out.RawByte(']')
  551. out.RawByte('}')
  552. }
  553. func (v *CBGravatar) MarshalEasyJSON(w *jwriter.Writer) {
  554. easyjson_encode_github_com_buger_jsonparser_benchmark_CBGravatar(w, v)
  555. }
  556. func (v *CBGravatar) UnmarshalEasyJSON(l *jlexer.Lexer) {
  557. easyjson_decode_github_com_buger_jsonparser_benchmark_CBGravatar(l, v)
  558. }
  559. func easyjson_decode_github_com_buger_jsonparser_benchmark_CBAvatar(in *jlexer.Lexer, out *CBAvatar) {
  560. in.Delim('{')
  561. for !in.IsDelim('}') {
  562. key := in.UnsafeString()
  563. in.WantColon()
  564. if in.IsNull() {
  565. in.Skip()
  566. in.WantComma()
  567. continue
  568. }
  569. switch key {
  570. case "url":
  571. out.Url = in.String()
  572. default:
  573. in.SkipRecursive()
  574. }
  575. in.WantComma()
  576. }
  577. in.Delim('}')
  578. }
  579. func easyjson_encode_github_com_buger_jsonparser_benchmark_CBAvatar(out *jwriter.Writer, in *CBAvatar) {
  580. out.RawByte('{')
  581. first := true
  582. _ = first
  583. if !first {
  584. out.RawByte(',')
  585. }
  586. first = false
  587. out.RawString("\"url\":")
  588. out.String(in.Url)
  589. out.RawByte('}')
  590. }
  591. func (v *CBAvatar) MarshalEasyJSON(w *jwriter.Writer) {
  592. easyjson_encode_github_com_buger_jsonparser_benchmark_CBAvatar(w, v)
  593. }
  594. func (v *CBAvatar) UnmarshalEasyJSON(l *jlexer.Lexer) {
  595. easyjson_decode_github_com_buger_jsonparser_benchmark_CBAvatar(l, v)
  596. }
  597. func easyjson_decode_github_com_buger_jsonparser_benchmark_SmallPayload(in *jlexer.Lexer, out *SmallPayload) {
  598. in.Delim('{')
  599. for !in.IsDelim('}') {
  600. key := in.UnsafeString()
  601. in.WantColon()
  602. if in.IsNull() {
  603. in.Skip()
  604. in.WantComma()
  605. continue
  606. }
  607. switch key {
  608. case "st":
  609. out.St = in.Int()
  610. case "sid":
  611. out.Sid = in.Int()
  612. case "tt":
  613. out.Tt = in.String()
  614. case "gr":
  615. out.Gr = in.Int()
  616. case "uuid":
  617. out.Uuid = in.String()
  618. case "ip":
  619. out.Ip = in.String()
  620. case "ua":
  621. out.Ua = in.String()
  622. case "tz":
  623. out.Tz = in.Int()
  624. case "v":
  625. out.V = in.Int()
  626. default:
  627. in.SkipRecursive()
  628. }
  629. in.WantComma()
  630. }
  631. in.Delim('}')
  632. }
  633. func easyjson_encode_github_com_buger_jsonparser_benchmark_SmallPayload(out *jwriter.Writer, in *SmallPayload) {
  634. out.RawByte('{')
  635. first := true
  636. _ = first
  637. if !first {
  638. out.RawByte(',')
  639. }
  640. first = false
  641. out.RawString("\"st\":")
  642. out.Int(in.St)
  643. if !first {
  644. out.RawByte(',')
  645. }
  646. first = false
  647. out.RawString("\"sid\":")
  648. out.Int(in.Sid)
  649. if !first {
  650. out.RawByte(',')
  651. }
  652. first = false
  653. out.RawString("\"tt\":")
  654. out.String(in.Tt)
  655. if !first {
  656. out.RawByte(',')
  657. }
  658. first = false
  659. out.RawString("\"gr\":")
  660. out.Int(in.Gr)
  661. if !first {
  662. out.RawByte(',')
  663. }
  664. first = false
  665. out.RawString("\"uuid\":")
  666. out.String(in.Uuid)
  667. if !first {
  668. out.RawByte(',')
  669. }
  670. first = false
  671. out.RawString("\"ip\":")
  672. out.String(in.Ip)
  673. if !first {
  674. out.RawByte(',')
  675. }
  676. first = false
  677. out.RawString("\"ua\":")
  678. out.String(in.Ua)
  679. if !first {
  680. out.RawByte(',')
  681. }
  682. first = false
  683. out.RawString("\"tz\":")
  684. out.Int(in.Tz)
  685. if !first {
  686. out.RawByte(',')
  687. }
  688. first = false
  689. out.RawString("\"v\":")
  690. out.Int(in.V)
  691. out.RawByte('}')
  692. }
  693. func (v *SmallPayload) MarshalEasyJSON(w *jwriter.Writer) {
  694. easyjson_encode_github_com_buger_jsonparser_benchmark_SmallPayload(w, v)
  695. }
  696. func (v *SmallPayload) UnmarshalEasyJSON(l *jlexer.Lexer) {
  697. easyjson_decode_github_com_buger_jsonparser_benchmark_SmallPayload(l, v)
  698. }