-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: modified benchmarking and added some github actions
- Loading branch information
1 parent
f16663b
commit faee6be
Showing
11 changed files
with
96 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Benchmark | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
- run: pnpm dev | ||
|
||
- name: Wait for localhost | ||
run: | | ||
timeout 300 bash -c 'until curl -s -o /dev/null http://localhost:3000; do sleep 5; done' | ||
- run: pnpm benchmark | ||
|
||
- name: Upload benchmark results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: benchmark-results | ||
path: packages/e2e/results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build, Lint, and Test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
- run: pnpm run build | ||
- run: pnpm run lint | ||
- run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1 @@ | ||
|
||
<p align="center"> | ||
<img src="apps/web/public/logo.svg" alt="Flipbook" width="200" /> | ||
<h1 style="text-align: center; margin-top: 10px;">Flipbook</h1> | ||
</p> | ||
|
||
[![Build Status](https://travis-ci.org/cereallarceny/flipbook.svg?branch=main)](https://travis-ci.org/cereallrceny/flipbook) | ||
[![Coverage Status](https://coveralls.io/repos/github/cereallarceny/flipbook/badge.svg?branch=main)](https://coveralls.io/github/cereallarceny/flipbook?branch=main) | ||
|
||
## Getting Started | ||
|
||
Flipbook is a series of libraries that you can use in any web, mobile, or desktop application that enable the writing and reading of QR codes that contain larger payloads than traditional QR codes. This is done by creating a series of QR codes that are stitched together into an animated GIF, called a "Flipbook". This Flipbook can then be scanned by the reader library and subsequently reassembled into the original payload. | ||
|
||
![Flipbook Example](./docs/flipbook-qr.gif) | ||
|
||
**[Download Reader](https://flipbook.codes)** | ||
|
||
### Why? | ||
|
||
The ubiquity of QR codes in daily life has made them a popular tool for sharing information. But the medium is inherently limited to payloads of small sizes. While larger payloads can be supported (to a point), the resulting QR code becomes too difficult to scan reliably. | ||
|
||
### Are there any size limitations? | ||
|
||
In theory, no. It would simply be a matter of how long it takes for the writer to encode the payload into a Flipbook, and how long it takes for the reader to decode the Flipbook back into the original payload. | ||
|
||
### What can a Flipbook contain? | ||
|
||
Anything! Books... movies... music... software... anything that can be represented as a series of bytes can be encoded into a Flipbook. | ||
|
||
## Libraries | ||
|
||
- Writer (Typescript): [Documentation](./packages/writer) | [NPM Package](https://www.npmjs.com/package/@flipbook/writer) | ||
- Reader (Typescript): [Documentation](./packages/reader) | [NPM Package](https://www.npmjs.com/package/@flipbook/reader) | ||
- Writer (Rust): *Coming soon...* | ||
- Reader (Rust): *Coming soon...* | ||
|
||
### Want to write a Flipbook binding? | ||
|
||
If you want to write a Flipbook binding for a language that isn't listed here, feel free to open an issue or a pull request. We'd love to see Flipbook supported in as many languages as possible! | ||
|
||
## Contributing | ||
|
||
If you'd like to contribute to Flipbook, please read our [contributing guide](./CONTRIBUTING.md) to learn how to get started. | ||
|
||
## License | ||
|
||
Flipbook is licensed under the [MIT License](./LICENSE). Go nuts! | ||
# Benchmarks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
## Benchmarks | ||
|
||
### Writer | ||
|
||
#### For 100 char string | ||
|
||
| Task Name | ops/sec | Average Time (ns) | Margin | Samples | | ||
| --- | --- | --- | --- | --- | | ||
| Generate QrCode Gif from 100 char string | 6 | 143733162.69999996 | ±6.02% | 10 | | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Task Name": "Generate QrCode Gif from 100 char string", | ||
"ops/sec": "2", | ||
"Average Time (ns)": 415900570.7, | ||
"Margin": "±11.49%", | ||
"Samples": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Task Name": "Generate QrCode Gif from 100 char string", | ||
"ops/sec": "6", | ||
"Average Time (ns)": 143733162.69999996, | ||
"Margin": "±6.02%", | ||
"Samples": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters