Element and helper classes to manage tree data structure.
First, make sure you have the
Polymer CLI installed. Then run
polymer serve to serve your application locally.
$ polymer serve
$ polymer build
This will create a build/ folder with bundled/ and unbundled/ sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving polymer serve a folder to serve
from:
$ polymer serve build/bundled
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test to run
your application's test suite locally.
The repository includes a local-only Node performance suite for large immutable trees.
$ npm run test:perf
By default it runs with tree sizes 10k, 100k, and 500k nodes and prints human-readable benchmark lines.
Example output:
PERF_RESULT api=getNodeByProperty(id) size=10000 coldMs=4.8123 warmMedianMs=0.0008 warmP95Ms=0.0053 speedup=6163.2x
To output JSON rows and summary instead, run:
$ npm run test:perf:json
This suite is reporting-only and not intended for CI thresholds, since local hardware and runtime conditions vary.