Elm-Benchmark:用于 Elm 的 Benchmark.js

时间:2021-07-04 19:21:55
【文件属性】:
文件名称:Elm-Benchmark:用于 Elm 的 Benchmark.js
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-04 19:21:55
Haskell Elm 中的 Benchmark.js 这个 repo 提供了一个库,用于在 Elm 中编写基于控制台的 Benchmark.js 测试。 入门 在开始之前,您必须同时引入 node.js 依赖项(jsdom 和 benchmark): $ cabal install $ npm install benchmark $ npm install jsdom (在 Windows 上, jsdom有点难以安装。详细说明) 例子 每个测试必须是() -> ()类型的传出port 。 在名为Benchmark的模块中定义任意数量的() -> ()测试。 下面是一个例子: -- Test.elm module Benchmark where discard : a -> () discard _ = () port testAdd10 : () -> () port testAdd10 =
【文件预览】:
Elm-Benchmark-master
----prescript.js(126B)
----Test.elm(883B)
----ElmBenchmark.cabal(934B)
----mkExe.hs(2KB)
----LICENSE(1KB)
----Setup.hs(46B)
----.gitignore(63B)
----postscript.js(558B)
----README.md(2KB)

网友评论