Sdeno Deno Test Dependencies

Sdeno, Steno on Deno
Specialized fast async file writer

Sdeno makes writing to the same file often/concurrently fast and safe.

Original Project

This project is a Deno "wrapper" for Steno (by typicode).

Installation

Because this is a Deno wrapper, you need to import it from this URL like that:

import { Writer } from 'https://deno.land/x/sdeno/mod.ts';

Usage

For usage, see Steno Usage.

Benchmark

deno task bench (see src/benchmark.ts)

Benchmark results are a little different from the original project because here we're using Deno instead of Node.js.

Write 1KB data to the same file x 1000
  fs     :  462ms
  sdeno  :    4ms

Write 1MB data to the same file x 1000
  fs     : 2551ms
  sdeno  :    7ms

Sdeno (as Steno) uses a smart queue and avoids unnecessary writes.



Warning: Benchmark can vary depending on the machine and the OS you're using.