Download Jar. Libraryless. Click here for Pure Java version (2039L/13K).
1 | !7 |
2 | |
3 | p { |
4 | bench 1000000 { |
5 | ai_parseTriple("same -> old -> same old"); |
6 | } |
7 | |
8 | ai_parseTriple_setCacheSize(2); |
9 | |
10 | bench 1000000 { |
11 | ai_parseTriple("same -> old -> same old"); |
12 | ai_parseTriple("two -> also -> work"); |
13 | } |
14 | |
15 | ai_parseTriple_setCacheSize(1); |
16 | |
17 | bench 1000000 { |
18 | ai_parseTriple("same -> old -> same old"); |
19 | ai_parseTriple("but -> not -> now"); |
20 | } |
21 | |
22 | ai_parseTriple_setCacheSize(1000); |
23 | |
24 | int i = 0; |
25 | bench 1000000 { |
26 | ai_parseTriple("same -> old -> same old" + i++); |
27 | } |
28 | |
29 | bench 1000000 { |
30 | ai_parseTriple(aGlobalID() + " -> " + aGlobalID() + " -> " + aGlobalID()); |
31 | } |
32 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012645 |
Snippet name: | Benchmark ai_parseTriple |
Eternal ID of this version: | #1012645/5 |
Text MD5: | 5029f35997fcb85c6ff5caa63a49c0f8 |
Transpilation MD5: | af542b91a459d59be480a7feaed9cf73 |
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-12-09 23:30:44 |
Source code size: | 646 bytes / 32 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 566 / 1291 |
Version history: | 4 change(s) |
Referenced in: | [show references] |