Skip to content

Benchmark Results

metafloor edited this page Feb 23, 2021 · 9 revisions

This page presents the benchmark results for various releases of bwip-js. New results will be posted when significant changes have been made to the cross-compiler, optimization passes, or the postscript emulation library.

All runs performed on the same machine. Versions pre 2.0 were benchmarked using Node.js v7.5.0.
Version 2.0+ was benchmarked using nodejs v10.21.0. PC is an Intel i7-3610QM @ 2.3GHz with 16GB RAM.

Times by Encoder

  • Slowest to fastest (latest version)
  • All times in msecs
Encoder v0.16 v1.0 v1.4 v1.5 v2.0 v2.1
qrcode 927 71 68 58 54 59
hanxin 479 45 45 39 31 28
azteccode 386 33 33 26 22 23
datamatrix 245 27 27 19 18 20
maxicode N/A 73 73 16 18 18
databarexpandedstackedcomposite 324 43 42 19 15 16
databarexpandedcomposite 197 32 32 14 13 16
gs1-128composite 181 32 34 15 11 15
databartruncatedcomposite 115 16 16 10 10 13
dotcode N/A N/A N/A N/A 11 13
databarstackedomnicomposite 194 25 24 14 11 13
databarstackedcomposite 135 15 16 12 10 13
databarlimitedcomposite 118 15 14 10 10 12
databaromnicomposite 124 18 19 10 10 12
ean8composite 119 21 22 10 9 11
ean13composite 146 39 40 11 10 11
upcecomposite 113 18 18 9 9 11
upcacomposite 126 24 25 9 9 11
pdf417 177 26 26 12 9 9
databarexpanded 98 20 21 5 5 7
databarexpandedstacked 224 28 28 11 6 6
ultracode N/A N/A N/A N/A 3 4
onecode 48 5 6 3 2 3
sscc18 56 37 38 3 3 2
databarstackedomni 100 11 11 5 2 2
databarlimited 26 3 4 2 2 2
databarstacked 30 4 3 2 2 2
databaromni 30 8 7 2 1 2
code128 55 28 30 3 2 2
databartruncated 14 4 5 1 1 2
ean13 48 16 17 2 1 1
japanpost 22 5 5 2 1 1
upca 32 21 22 1 1 1
upce 20 9 9 1 1 1
itf14 35 18 18 1 1 1
ean8 26 14 15 1 1 1
code93 40 16 16 1 1 1
royalmail 17 3 3 2 1 1
postnet 14 3 3 1 1 1
planet 17 4 4 1 1 1
code39 59 43 44 2 1 1