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

11
LINES

< > BotCompany Repo | #1035282 // las_profileForToWithAndWithoutReturnValue

JavaX fragment (include)

svoid las_profileForToWithAndWithoutReturnValue() {
  int n = 100000;
  S src = "for i to \*n*/ { i }";
  var script1 = leftArrowParse(src);
  var script2 = leftArrowParse(src + "; null");
  
  profileFor5(-> script1!);
  
  benchFor1("with return value", -> script1!);
  benchFor5("w/o  return value", -> script2!);
}

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: 122 / 137
Version history: 2 change(s)
Referenced in: [show references]