Libraryless. Click here for Pure Java version (3392L/21K/74K).
!752 sclass A { S a; [stdEq] } sclass B extends A { S b; [stdEq] } static int n = 200000; p { new L l; for (int i = 0; i < n; i++) { l.add(nu(A, a := "AAA")); l.add(nu(B, a := "ABC", b := "DEF")); } 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 #1005589
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005590 |
Snippet name: | Benchmark (+test) structure/unstructure with MANY custom objects |
Eternal ID of this version: | #1005590/2 |
Text MD5: | e6345a3a15a0195b879d34b06ea71747 |
Transpilation MD5: | 5130e61066635042e11c27e4e73b88f5 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-01 19:29:58 |
Source code size: | 591 bytes / 36 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 640 / 904 |
Version history: | 1 change(s) |
Referenced in: | [show references] |