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
- Host: GitHub
- URL: https://github.com/zhuravlevma/node-rust-cdylib
- Owner: zhuravlevma
- Created: 2022-04-10T12:38:23.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T18:04:31.000Z (about 3 years ago)
- Last Synced: 2025-01-15T07:36:20.048Z (5 months ago)
- Topics: cdylib, nodejs, rust
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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