https://github.com/superauguste/streamlet
Streamlet rewritten in Go for better performance.
https://github.com/superauguste/streamlet
Last synced: 27 days ago
JSON representation
Streamlet rewritten in Go for better performance.
- Host: GitHub
- URL: https://github.com/superauguste/streamlet
- Owner: SuperAuguste
- License: mit
- Created: 2020-01-09T02:53:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-17T11:56:04.000Z (over 6 years ago)
- Last Synced: 2025-02-22T01:34:23.902Z (over 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Streamlet
Streamlet is originally a NodeJS-based stream-oriented database optimal for small scale projects that need a high speed method for storing data. This version of streamlet has been rewritten in Go for maximum speed and portability.
This version of Streamlet used to use `os.Write`, but after extensive testing, it was determined that it was about 2000x faster to use `bufio`. Before the change to `bufio`, the database clocked in at `~3500 ns/op` for bulk inserts. It now takes `~1600 ns/op`.
On average, Streamlet can achieve `450,000 ops/sec` write speed on a Dell XPS 13. Streamlet can achieve `1000ns/doc` read speed on the same device.
## Installation
```bash
GO111MODULE=on
go get github.com/SuperAuguste/streamlet
```
## License
This project is licensed under the MIT license.