2 Star 0 Fork 0

mirrors_cocos-creator / editor-benchmark

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Benchmark

Benchmark runner for Fireball and Editor-framework.

Javascript benchmark

Install

cd javascript
npm install
npm start

Run

open *.html or ``http://127.0.0.1:8513/*.html`

API

  • suite
    A test suite begins with a call to the global function suite with two parameters: a string and a function.
    The string is a name or title for a spec suite – usually what is being tested.
    The function is a block of code that implements the suite.

  • setup
    To help a test suite DRY up any duplicated setup code, provides the global setup functions. As the name implies the setup function is called once. You can store data in suite Object, or define necessary variables. Code from body of the function will be presented in UI.

  • bench
    Benchmark are defined by calling the global function bench, which, like suite takes a string and a function. The string is the title of the test and the function is the test

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors_cocos-creator/editor-benchmark.git
git@gitee.com:mirrors_cocos-creator/editor-benchmark.git
mirrors_cocos-creator
editor-benchmark
editor-benchmark
master

搜索帮助