diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-12-01 22:05:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 11:35:18 +0530 |
commit | 6982c74e11ec8294ed5bd53d2a9d316d7e20e7d2 (patch) | |
tree | 8bc1447379c010914c84f793ad7cef43a232a7e8 /tools/wgpu_sync.js | |
parent | 9b2b8df927ac23cfa99016a684179f2a3198ba2e (diff) |
perf: use fast api for io read/write sync (#15863)
```
$ dd if=/dev/zero bs=65536 count=500000 | ./stdio # C baseline
500000+0 records in
500000+0 records out
32768000000 bytes transferred in 4.126087 secs (7941664827 bytes/sec)
c: size 32768000000 reads 500000 blocksize 65536
```
```
$ dd if=/dev/zero bs=65536 count=500000 | deno run stdio.js # Deno
500000+0 records in
500000+0 records out
32768000000 bytes transferred in 4.279032 secs (7657806719 bytes/sec)
deno: size 32768000000 reads 500000 blocksize 65536
```
Diffstat (limited to 'tools/wgpu_sync.js')
0 files changed, 0 insertions, 0 deletions