Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1035282 // las_profileForToWithAndWithoutReturnValue

JavaX fragment (include)

1  
svoid las_profileForToWithAndWithoutReturnValue() {
2  
  int n = 100000;
3  
  S src = "for i to \*n*/ { i }";
4  
  var script1 = leftArrowParse(src);
5  
  var script2 = leftArrowParse(src + "; null");
6  
  
7  
  profileFor5(-> script1!);
8  
  
9  
  benchFor1("with return value", -> script1!);
10  
  benchFor5("w/o  return value", -> script2!);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035282
Snippet name: las_profileForToWithAndWithoutReturnValue
Eternal ID of this version: #1035282/3
Text MD5: f212188c555dc42e17f5a2c23edf8db9
Author: stefan
Category: javax / left arrow script
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-28 22:49:53
Source code size: 328 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 123 / 138
Version history: 2 change(s)
Referenced in: [show references]