An open API service indexing awesome lists of open source software.

https://github.com/zhuravlevma/node-rust-cdylib

mini app for testing rust cdylib and nodejs
https://github.com/zhuravlevma/node-rust-cdylib

cdylib nodejs rust

Last synced: 3 months ago
JSON representation

mini app for testing rust cdylib and nodejs

Awesome Lists containing this project

README

        

# cdylib-nodejs

This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).

## Test results

### Average time of calculations for Matrix:
#### Rust cdylib: 1ms ⚡
#### JS vanilla: 92.92ms
### Average time of calculations for Fibonacci:
#### Rust cdylib: 26ms ⚡
#### JS vanilla: 140.12ms

## Installing cdylib-nodejs

Installing cdylib-nodejs requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).

You can install the project with npm. In the project directory, run:

```sh
$ npm install
```

This fully installs the project, including installing any dependencies and running the build.

## Building cdylib-nodejs

If you have already installed the project and only want to run the build, run:

```sh
$ npm start