currenthashmap 与 ehcache 性能对比

    技术2026-10-02  3

    环境:1 启动12线程插入数据5000条

             2启动一个轮询查询线程

             3数据对象为连个一个long 一个String

            

             注意:为了测试硬盘读取写缓解性能

            2000 maxElementsInMemory="2000"

     

     

    结果如下 currenthashmap

     

     

    ehcache

     

     

     

    启动 io 后 会产生后台线程 而且更可恶的是 一个cache 后面的线程是一对一的

     

        

    最新回复(0)