Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add high-level example. #53 #54

Merged
merged 10 commits into from
Feb 23, 2023
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ computers.
</a>
</div>

## Example
juliangruber marked this conversation as resolved.
Show resolved Hide resolved

```js
const start = new Date();
const res = await fetch("https://ipfs.io/ipfs/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi/");
console.log(`TTFB: ${new Date() - start}ms`);
```

```bash
$ zinnia run example.js
TTFB: 235ms
```

juliangruber marked this conversation as resolved.
Show resolved Hide resolved
## Installation

```bash
$ cargo install zinnia
```
juliangruber marked this conversation as resolved.
Show resolved Hide resolved

## Architecture

![](./docs/images/runtime-diagram.png)
Expand Down