Skip to content

Neovici/cosmoz-tree

Repository files navigation

cosmoz-tree

Build Status Published on webcomponents.org semantic-release

<cosmoz-tree>

Element and helper classes to manage tree data structure.

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing Your Application

$ polymer serve

Building Your Application

$ 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

Running Tests

$ 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.

Running Performance Tests (Local Only)

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.

About

Element and helper classes to manage tree data structure.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors