简体   繁体   English

Scala库的自动性能测试

[英]Automatic performance testing of Scala libraries

Do any Scala testing libraries help with performance tests? Scala测试库是否有助于性能测试? Can't find anything relevant in ScalaTest or specs. 在ScalaTest或规格中找不到任何相关内容。

ScalaMeter (hat tip to Alexandar Procopec): a microbenchmarking and performance regression testing framework for the JVM platform that allows expressing performance tests in a way which is both simple and concise. ScalaMeter (对Alexandar Procopec的提示):JVM平台的微基准测试和性能回归测试框架,允许以简单和简洁的方式表达性能测试。

  • It can be used both from Scala and Java. 它既可以用于Scala,也可以用于Java。
  • write performance tests in a DSL similar to ScalaTest and ScalaCheck 在类似于ScalaTest和ScalaCheck的DSL中编写性能测试
  • specify test input data 指定测试输入数据
  • specify how test results are collected 指定如何收集测试结果
  • organize performance tests hierarchically 按层次组织性能测试

SPerformance正朝着这个目标前进: http ://github.com/jsuereth/sperformance/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM