https://github.com/banyango/rustffi_variouswebservers
Testing out using Rust FFI and importing that into node.js/flask/spring
https://github.com/banyango/rustffi_variouswebservers
Last synced: over 1 year ago
JSON representation
Testing out using Rust FFI and importing that into node.js/flask/spring
- Host: GitHub
- URL: https://github.com/banyango/rustffi_variouswebservers
- Owner: Banyango
- Created: 2019-02-20T15:44:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-20T15:46:07.000Z (over 7 years ago)
- Last Synced: 2025-02-12T09:52:38.567Z (over 1 year ago)
- Language: Python
- Size: 8.14 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Rust FFI Test
## Testing binding Rust code to other webservers through FFI
Note: Just me messing around...
I ran a few tests to see what it would be like to bind to rust code in various servers/languages and then ran WRK on them to see if there was a noticable performance boost.
For the most part the performance was the same.
I think the reason being that the aglorithm that I chose (o(n) fibonacci) was not taxing enough. I think it might be better to retry the performance testing with something a bit more complicated.
As a little test I think this more morphed into just playing around with FFI in other languages and seeing how hard it was to implement them.
Also just for kicks I implemented the algorithm in pure rust using nickel webserver. It was interesting because this was by far the fastest web server I tested. 40K req/s vs next best spring boot after warming up ~20K.
( I seem to recall seeing a node.js setting somewhere that can boost the performance so maybe node is more capable than I found. )