位运算测试
package com.ljb.springboot.bitcal;
public class Test {
public static void main(String[] args) {
long start = System.currentTimeMillis() * 1000000L + System.nanoTime() % 1000000L;
int test1 = 2 << 16;
int test2 = 2 * 2 * 2

博客内容探讨了位运算的性能,通过测试发现位运算并未表现出显著的效率优势。作者分享了测试结果,并表示对原因感到困惑,决定暂时记录下来以供后续研究。
最低0.47元/天 解锁文章
1123

被折叠的 条评论
为什么被折叠?



