Download Jar. Libraryless. Click here for Pure Java version (1385L/9K).
1 | !7 |
2 | |
3 | sclass dummy {}
|
4 | |
5 | static dummy bla; |
6 | |
7 | p {
|
8 | int n = 100000000; |
9 | twice { time {
|
10 | repeat n {
|
11 | bla = new dummy; |
12 | } |
13 | }} |
14 | printBenchResult(n); |
15 | |
16 | twice { time {
|
17 | repeat n {
|
18 | bla = nuEmptyObject(dummy); |
19 | } |
20 | }} |
21 | printBenchResult(n); |
22 | } |
Began life as a copy of #1018501
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018548 |
| Snippet name: | Benchmark nuEmptyObject |
| Eternal ID of this version: | #1018548/4 |
| Text MD5: | cd980218ab82b5e32cda0a0c40c6e124 |
| Transpilation MD5: | 50c0801f574925b174b992c7e99e612e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-05 13:30:38 |
| Source code size: | 279 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 669 / 1476 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |