Download Jar. Libraryless. Click here for Pure Java version (16159L/114K).
!7 set flag FastLisp. static S intern(S s) { ret internPerProgram(s); } p { vmStartTime_sys(); // force JavaX upgrade early poorMansProfiling(100); int count = 0, longest = 0; for (Web web : allIndexedWebs()) for (WebNode n : web_nodesAndRelations(web)) for (S text : web_texts(n)) { longest = max(longest, l(text)); ++count; } print("Texts found: " + count + ", longest in chars: " + longest); print("Total runtime: " + toS(sysNow()-vmStartTime_sys(), 1) + " s" + " (" + toS(sysNow()-programLoadTime_sys(), 1) + " s in program)"); MultiSet<S> ms = poorMansProfiling_stopAndGetResults(); poorMansProfiling_saveResults(); print("Have " + ms.uniqueSize() + " unique stack traces, " + ms.size() + " total samples"); print("Innermost functions:"); pnl(multiSetToMapPopularFirst(multiSetMapKeys(f firstLine, ms))); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011571 |
Snippet name: | Bench getting all node texts (includes loading all the webs) |
Eternal ID of this version: | #1011571/12 |
Text MD5: | c5b6e59f656bd25d1f6d2873cfffe9a4 |
Transpilation MD5: | ab53808df9386e47f332568c06fe11f5 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-02 06:52:33 |
Source code size: | 926 bytes / 32 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 581 / 1491 |
Version history: | 11 change(s) |
Referenced in: | [show references] |