Libraryless. Click here for Pure Java version (2611L/16K/54K).
!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")); } structure_showTiming = true; S s = structure(l); print("Have " + l(s) + " chars (" + n*2 + " objects)"); l = null; for i to 6: { // give Server VM time to optimize time { unstructure(s); } print("\n==\n"); } print("OK"); killVM(); }
Began life as a copy of #1005590
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005605 |
Snippet name: | Benchmark using unstructure a lot, exit VM (for profiling) |
Eternal ID of this version: | #1005605/1 |
Text MD5: | ebbb48d9ab4d37fe67fe781737bae63b |
Transpilation MD5: | 5bfe35892d4164ac43eedf09440586cf |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-29 16:36:20 |
Source code size: | 539 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 478 / 559 |
Referenced in: | [show references] |