Download Jar. Libraryless. Click here for Pure Java version (946L/7K).
1 | !7 |
2 | |
3 | static new BetterThreadLocal<Bool> b; |
4 | |
5 | p {
|
6 | twice { time {
|
7 | repeat 10000000 {
|
8 | if (isTrue(b!)) sleep(10); |
9 | } |
10 | }} |
11 | printBenchResult(10000000); |
12 | } |
Began life as a copy of #1011703
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: | #1011704 |
| Snippet name: | Benchmark isTrue(BetterThreadLocal) |
| Eternal ID of this version: | #1011704/3 |
| Text MD5: | f28d5d88aa1beaeadbfba1859a399395 |
| Transpilation MD5: | 04d82a40bbfc784706c53d0cdcbbc29f |
| 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:09:51 |
| Source code size: | 172 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 711 / 1647 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |