A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/zly201/js-sdsl below:

ZLY201/js-sdsl: A javascript standard data structure library which benchmark against C++ STL.

A javascript standard data structure library which benchmark against C++ STL

English | 简体中文

We are benchmarking against other popular data structure libraries. In some ways we're better than the best library. See benchmark.

Download directly

Or install js-sdsl using npm

You can visit our official website to get more information.

To help you have a better use, we also provide this API document.

<!-- you can download the file locally and import it or import it dynamically by using url. -->
<script src="https://unpkg.com/js-sdsl/dist/umd/js-sdsl.min.js"></script>
<script>
    const {
      Vector,
      Stack,
      Queue,
      LinkList,
      Deque,
      PriorityQueue,
      OrderedSet,
      OrderedMap,
      HashSet,
      HashMap
    } = sdsl;
    const myOrderedMap = new OrderedMap();
    myOrderedMap.setElement(1, 2);
    console.log(myOrderedMap.getElementByKey(1)); // 2
</script>
// esModule
import { OrderedMap } from 'js-sdsl';
// commonJs
const { OrderedMap } = require('js-sdsl');
const myOrderedMap = new OrderedMap();
myOrderedMap.setElement(1, 2);
console.log(myOrderedMap.getElementByKey(1)); // 2

You can pull this repository and run yarn build to rebuild this library.

We use jest library to write unit tests, you can see test coverage on coveralls. You can run yarn test:unit command to reproduce it.

We tested most of the functions for efficiency. You can go to gh-pages/performance.md to see our running results or reproduce it with yarn test:performance command.

You can also visit here to get the result.

@ZLY201

Feel free to dive in! Open an issue or submit PRs. It may be helpful to read the Contributor Guide.

Thanks goes to these wonderful people:

This project follows the all-contributors specification. Contributions of any kind welcome!

MIT © ZLY201


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4