Download Jar. Libraryless. Click here for Pure Java version (16159L/114K).
1 | !7 |
2 | |
3 | set flag FastLisp. |
4 | |
5 | static S intern(S s) { |
6 | ret internPerProgram(s); |
7 | } |
8 | |
9 | p { |
10 | vmStartTime_sys(); // force JavaX upgrade early |
11 | |
12 | poorMansProfiling(100); |
13 | |
14 | int count = 0, longest = 0; |
15 | for (Web web : allIndexedWebs()) |
16 | for (WebNode n : web_nodesAndRelations(web)) |
17 | for (S text : web_texts(n)) { |
18 | longest = max(longest, l(text)); |
19 | ++count; |
20 | } |
21 | |
22 | print("Texts found: " + count + ", longest in chars: " + longest); |
23 | print("Total runtime: " + toS(sysNow()-vmStartTime_sys(), 1) + " s" |
24 | + " (" + toS(sysNow()-programLoadTime_sys(), 1) + " s in program)"); |
25 | |
26 | MultiSet<S> ms = poorMansProfiling_stopAndGetResults(); |
27 | poorMansProfiling_saveResults(); |
28 | print("Have " + ms.uniqueSize() + " unique stack traces, " + ms.size() + " total samples"); |
29 | |
30 | print("Innermost functions:"); |
31 | pnl(multiSetToMapPopularFirst(multiSetMapKeys(f firstLine, ms))); |
32 | } |
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: | 583 / 1497 |
Version history: | 11 change(s) |
Referenced in: | [show references] |