joshuawise / nodemark Goto Github PK
View Code? Open in Web Editor NEWA modern benchmarking library for Node.js
License: MIT License
A modern benchmarking library for Node.js
License: MIT License
Am I correct in assuming that the library attempts to deal with noise and the garbage collector in a better way? Also, how accurate would the library be when browserified?
I'm interested in using this library to help with in-browser benchmarking as well as potentially using it in Deno. I've done the work of removing node-specific dependencies in this branch. I'd be happy to contribute this as a PR.
(This makes the minimum Node version requirement 11.x, IIRC, in order for these features to be available. It also requires polyfilling globalThis.performance
e.g. like so. I realise these are breaking changes for the library. I'd also appreciate advice on the best way to create a version which can be immediately imported in Node without requiring the user to supply the polyfill code.)
I've also done a bunch of other work in my fork, including
require
to import
(changes)I'd be happy to contribute any of these changes, but I also realise that the changes are significant, would involve a major version bump, and might not align with what you want for the library. I'm considering simply creating a "hard fork" if that's the case!
I really appreciate the work you have put into nodemark - it's the most straightforward and useful JS benchmarking library I've found.
EDIT: this is my attempt at patching up Node's global environment with performance
so that browser code runs in Node.
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.