Giter VIP home page Giter VIP logo

nodemark's People

Contributors

joshuawise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

crabmusket

nodemark's Issues

Running in browser and Deno

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

  • Converting from require to import (changes)
  • Replacing Mocha/Chai with tape (seems like the lightest testing framework for Node that I can find)
  • Adding basic tests instead of no-op (see tests)
  • Replacing Travis with Github Actions (changes)
  • Formatting code using Deno's built-in formatter

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.