haoliangyu / fachi Goto Github PK
View Code? Open in Web Editor NEWfachi is a modern benchmark runner for JavaScript and TypeScript
License: MIT License
fachi is a modern benchmark runner for JavaScript and TypeScript
License: MIT License
A typical test file in fachi
may contain multiple test suites and each test suite may contain test cases.
suite('search', function () {
before(function () {
// ...
})
after(function () {
// ...
})
bench('by id', function () {
// ...
});
})
In the hierarchy, file -> suite -> test
, items in each level are separate, and the execution result of a file/suite/test doesn't affect others in the same level. This provides the isolation mechanism in error situations, for example,
before
hook should not affect the execution of another suite in the same file,The emergent error in a file pauses the execution of that file. So as the suite (hooks) and the test cases. After printing the error message, then it should move on to run the next file until all are done.
When the CLI tool runs, it should print out the log messages for each file, suite, and case. The format should look like
/my-project/benchmarks/search.js
search
* by id x 4,161,532 +-0.99% (59 cycles)
* by name x 4,231,578 +-0.89% (56 cycles)
search-string
* by org x 5,234,786 +-0.95% (73 cycles)
The logging logic should be wrapped into a Logger
class.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.