Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SoutrikBandyopadhyay/randomquote
A blazingly fast random quote generator written in Rust
https://github.com/SoutrikBandyopadhyay/randomquote
Last synced: 12 days ago
JSON representation
A blazingly fast random quote generator written in Rust
- Host: GitHub
- URL: https://github.com/SoutrikBandyopadhyay/randomquote
- Owner: SoutrikBandyopadhyay
- Created: 2022-03-16T09:47:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T04:47:58.000Z (over 2 years ago)
- Last Synced: 2024-06-08T23:35:15.328Z (5 months ago)
- Language: Python
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - randomquote - A blazingly fast random quote generator written in Rust (Python)
README
# randomquote
This is a binary application that generates a random quote from a corpus of JSON
data provided herein. The application can be used along with
[Conky](https://github.com/brndnmtthws/conky) desktop
manager to dynamically generate quotes.## Usage
```shell
$ cargo build --release
$ cp /target/release/randomquote .
$ ./randomquote
```## Benchmarking
The benchmarking was done with [hyperfine](https://github.com/sharkdp/hyperfine)
to compare against a Python3 implementation```shell
hyperfine --runs 100 './randomquote' 'python3 quotes.py'
```The repository author obtained a ~7.2 times speedup against python
implementation