如何使用Caliper进行基准测试? [英] How to use Caliper for benchmarking?

查看:171
本文介绍了如何使用Caliper进行基准测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何使用Caliper在Eclipse中进行基准测试,但是我一无所获.我尝试按照此处找到的26分钟教程进行操作: https://code.google.com/p/caliper/,但我很快就迷路了.我已经下载了Caliper jar文件,但是我不确定它应该在哪个文件夹中.我也已经下载了Maven for Eclipse插件,但是我不确定是否有必要.是否可以从Eclipse的帮助"菜单中的安装新软件.."选项安装Caliper?我只是想能够对我为我正在学习的数据结构和算法"类创建的某些算法进行非常简单的速度测试.

I am trying to figure out how to use Caliper to do benchmark testing in Eclipse and I am getting nowhere. I tried following the 26 minute tutorial found here: https://code.google.com/p/caliper/ but I get lost quickly. I have downloaded the Caliper jar file but I'm not sure what folder it should be in. I've also downloaded Maven for Eclipse plugin but I'm not even sure if that is necessary. Is it possible to install Caliper from the 'Install New Software..' option in the Help menu in Eclipse? I just want to be able to do very simple speed tests for some of the algorithms I've created for a Data Structures and Algorithms class I am taking.

推荐答案

此答案现在已过时. Caliper在Windows中工作了至少一年,至少: https: //code.google.com/p/caliper/issues/detail?id=167

This answer is now obsolete. Caliper has worked in Windows for more than a year, at least: https://code.google.com/p/caliper/issues/detail?id=167

Caliper在Windows中不起作用.看到这种情况.您需要使用版本0.5-rc1,该版本存在其他问题,但仍然可以,并且缺少许多功能,但是在Windows中确实可以使用.

Caliper doesn't work in Windows. See this case. You need to use version 0.5-rc1, which has other issues but is still pretty okay and is missing a lot of features, but it does work in Windows.

  • 如果您知道如何使用Maven,请将此pom片段添加到pom.xml中.

  • If you know how to use Maven, add this pom snippet to your pom.xml.

<dependency>
    <groupId>com.google.caliper</groupId>
    <artifactId>caliper</artifactId>
    <version>0.5-rc1</version>
</dependency>

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆