Download Jar. Libraryless. Click here for Pure Java version (926L/7K).
!7 static new ThreadLocal<Bool> b; p { b.set(false); twice { time { repeat 10000000 { if (isTrue(b!)) sleep(10); } }} printBenchResult(10000000); }
Began life as a copy of #1011705
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011706 |
| Snippet name: | Benchmark isTrue(ThreadLocal) with hit |
| Eternal ID of this version: | #1011706/3 |
| Text MD5: | f84f2310db3f53c3f5d373c2d7b7019f |
| Transpilation MD5: | fdaaf24ca2e3563b5683b010260fd138 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-02 08:13:34 |
| Source code size: | 183 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 697 / 1636 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |