Libraryless. Click here for Pure Java version (4867L/31K/106K).
!7 sclass A { int a; [stdEq] } sclass B extends A { int b; [stdEq] } static int n = 200000; p { new L l; for (int i = 0; i < n; i++) { l.add(nu(A, a := 1)); l.add(nu(B, a := 2, b := 3)); } print("Objects: " + l(l)); structure_showTiming = true; for i to 8: { // give Server VM time to optimize S s = testStructureFunction(l); /*print("javaTok_streaming"); time { javaTok_streaming(s, new JavaTok_Stream { void add(int i, int j) {} }); }*/ print("\n==\n"); } print("OK"); }
Began life as a copy of #1005590
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009440 |
Snippet name: | Benchmark (+test) structure/unstructure with MANY custom objects containing primitive values |
Eternal ID of this version: | #1009440/3 |
Text MD5: | 314a7e5e3e85506470ffa06a2bbbdaaa |
Transpilation MD5: | be7ce9e374ad74252884cf95d7ef6ee6 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-05 13:19:00 |
Source code size: | 581 bytes / 36 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 476 / 605 |
Version history: | 2 change(s) |
Referenced in: | #1018547 - Profile unstructure with MANY custom objects containing primitive values |