Libraryless. Click here for Pure Java version (5372L/29K).
1 | svoid bench_throwAndCatchException() { |
2 | benchFor10(-> { |
3 | try { |
4 | if (alwaysTrue()) |
5 | throw new RuntimeException; |
6 | } catch (RuntimeException e) { |
7 | } |
8 | }); |
9 | } |
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: | 132 / 194 |
Version history: | 2 change(s) |
Referenced in: | [show references] |