Caliper

How do I run Guava's benchmark suite?

点点圈 提交于 2019-12-10 09:25:28
问题 Guava has a guava-tests subdirectory that contains a directory subtree called benchmark . It appears that executing mvn test (or mvn install ) runs the full suite of unit tests in the test subtree, but nothing is run in the benchmarks suite. My question is: how do you actually run the benchmark suite? In other words, if I download the guava source from git (say, in a Linux environment), what are the steps I need to take to build guava and run its benchmark suite locally? There is surprisingly

How do I run Guava's benchmark suite?

落爺英雄遲暮 提交于 2019-12-05 12:20:10
Guava has a guava-tests subdirectory that contains a directory subtree called benchmark . It appears that executing mvn test (or mvn install ) runs the full suite of unit tests in the test subtree, but nothing is run in the benchmarks suite. My question is: how do you actually run the benchmark suite? In other words, if I download the guava source from git (say, in a Linux environment), what are the steps I need to take to build guava and run its benchmark suite locally? There is surprisingly little information about this online. I stumbled across this old Google groups post , as well as a git

Strange performance drop of JDK8 LocalDate.toEpochDay

好久不见. 提交于 2019-12-01 18:21:13
I was curious if we finally get a fast datetime library with JDK8. Nearly all LocalDate computations use toEpochDay so I looked at the source and the large number of divisions and branches made me curious if I could do better. I eliminated some branching and all but one division, however the speedup is worse than expected. So my first question how is it possible that an algorithm using multiple division takes only about 30 cycles (throughput). Holger's comments seem to have answered this: Division by a small constant gets JIT-ed to multiplication. I did it manually and now I'm consistently

How to measure file read speed without caching?

为君一笑 提交于 2019-11-28 20:42:44
My java program spends most time by reading some files and I want to optimize it, e.g., by using concurrency, prefetching, memory mapped files , or whatever. Optimizing without benchmarking is a non-sense, so I benchmark. However, during the benchmark the whole file content gets cached in RAM, unlike in the real run. Thus the run-times of the benchmark are much smaller and most probably unrelated to the reality. I'd need to somehow tell the OS (Linux) not to cache the file content, or better to wipe out the cache before each benchmark run. Or maybe consume most of the available RAM (32 GB), so

Hyperledger区块链技术生态

会有一股神秘感。 提交于 2019-11-28 18:47:48
Hyperledger区块链技术生态 Hyperledger是一个专注于企业级区块链技术并推动区块链跨行业应用的开源项目,孵化并推广一系列区块链技术,包括分布式账本框架,智能合约引擎,客户端库,图形界面,实用程序库和示例应用程序。Hyperledger鼓励重复使用通用构建模块化,并实现DLT组件的快速创新。 Hyperledger框架 Hyperledger Burrow是一款可以使用的智能合约机。Burrow是2014年12月发布的第一款此类产品,它提供了一个模块化区块链客户端,其中包含一个部分符合以太坊虚拟机(EVM)规范的许可智能合约解释器。 Hyperledger Fabric作为开发具有模块化架构的应用程序或解决方案的基础,Hyperledger Fabric允许组件(例如共识和成员服务)即插即用。 Hyperledger Grid是一个基于WebAssembly的项目,用于构建供应链解决方案。它包括一组库,数据模型和SDK,以加速供应链智能合约和客户端界面的开发。 Hyperledger Indy是一种分布式分类账,专为分散身份而设计。它提供工具,库和可重用组件,用于创建和使用基于区块链或其他分布式账本的独立数字身份,以实现互操作性。 Hyperledger Iroha是一个易于使用的模块化分布式区块链平台,具有自己独特的共识和订购服务算法