Skip to content

Commit dd46f5b

Browse files
committed
Speed-up decoding 4x.
1 parent 780a672 commit dd46f5b

4 files changed

Lines changed: 405 additions & 64 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Minimal 0-dependency QR code generator & reader.
44

55
- 🔒 Auditable, 0-dependency
6+
- 🏎 Fast: [faster](#speed) than all JS implementations
7+
- 🔍 Reliable: 100MB+ of extensive test vectors ensure correctness
68
- 🏞️ Encoding (generating) supports ASCII, term, gif, svg and png codes
79
- 📷 Decoding (reading) supports camera feed input, files and non-browser environments
8-
- 🏎 Fast: faster than all JS implementations
9-
- 🔍 Extensive tests ensure correctness: 100MB+ of vectors
10-
- 🪶 16KB (gzipped) for encoding + decoding, 9KB for encoding
10+
- 🪶 18KB (gzipped) for encoding + decoding, 9KB for encoding
1111

1212
Check out:
1313

@@ -248,14 +248,14 @@ qrcode-generator x 2,909 ops/sec @ 343μs/op
248248
nuintun x 3,470 ops/sec @ 288μs/op
249249
250250
# encode of large qr
251-
@paulmillr/qr x 318 ops/sec @ 3ms/op
251+
@paulmillr/qr x 334 ops/sec @ 2ms/op
252252
qrcode-generator x 174 ops/sec @ 5ms/op
253253
nuintun x 221 ops/sec @ 4ms/op
254254
255255
# decode
256-
@paulmillr/qr x 162 ops/sec @ 6ms/op ± 3.78% (5ms..16ms)
257-
jsqr x 50 ops/sec @ 19ms/op ± 5.44% (18ms..35ms)
258-
nuintun x 49 ops/sec @ 20ms/op ± 5.08% (18ms..36ms)
256+
@paulmillr/qr x 662 ops/sec @ 1ms/op
257+
jsqr x 50 ops/sec @ 19ms/op
258+
nuintun x 49 ops/sec @ 20ms/op
259259
instascan x 128 ops/sec @ 7ms/op ± 31.44% (4ms..166ms)
260260
```
261261

0 commit comments

Comments
 (0)