offen / underscore-benchmark Goto Github PK
View Code? Open in Web Editor NEWBenchmarking stats calculation against different underscore versions
License: MIT License
Benchmarking stats calculation against different underscore versions
License: MIT License
As discussed in #1 it is required that running this benchmark on Windows is also possible (excluding Windows would cut off a lot of testing targets).
We specifically need to find a way to replace the pull.sh
script with a cross-platform solution, either by using git-submodule
or reimplementing the behavior as a Node.js script.
I see that generate-fixtures.js
spends some effort to ensure that one third of events is mobile and a quarter has a referrer. Is this based on observations from real-world data?
Otherwise, the randomized values seem to be drawn from a flat distribution. All events are of type PAGEVIEW
. Are these choices approximately realistic? For example, are other event types rare?
I'm asking because the distribution of values may affect the proportions of time spent in alternative branches of the code, which in turn may affect the running time.
If we end up concluding that the data are not very representative, one possible solution may be to take real data and replace each unique string by another, non-identifying string (using wholesale search/replace) in order to arrive at a single, censored-but-representative dataset.
When testers find a significant difference, it is nice if they can profile the benchmark code, first with the baseline version and then with the comparison version, in order to determine which Underscore functions have slowed down (or sped up) most. For this to produce useful numbers, it is important that the benchmark runs with only one version at a time; otherwise, the profiler is likely to just average the results.
The benchmark package does (at least) two questionable things:
I can think of a couple of options (from least to most effort):
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.