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

9
LINES

< > BotCompany Repo | #1034261 // bench_throwAndCatchException - I get something like 260k / second

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5372L/29K).

svoid bench_throwAndCatchException() {
  benchFor10(-> {
    try {
      if (alwaysTrue())
        throw new RuntimeException;
    } catch (RuntimeException e) {
    }
  });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034261
Snippet name: bench_throwAndCatchException - I get something like 260k / second
Eternal ID of this version: #1034261/3
Text MD5: 65870a296f9ace8133ef5265dbdd79e3
Transpilation MD5: f71412b6a074741b2db2103dc7e7cafa
Author: stefan
Category: javax / gazelle v
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 13:21:48
Source code size: 183 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 59 / 101
Version history: 2 change(s)
Referenced in: [show references]