Download Jar. Libraryless. Click here for Pure Java version (926L/7K).
1 | !7 |
2 | |
3 | static new ThreadLocal<Bool> b; |
4 | |
5 | p {
|
6 | b.set(false); |
7 | twice { time {
|
8 | repeat 10000000 {
|
9 | if (isTrue(b!)) sleep(10); |
10 | } |
11 | }} |
12 | printBenchResult(10000000); |
13 | } |
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: | 699 / 1640 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |