← Manual: the library

How fast Arqam writes long numbers

Arqam 2.0.0 (engine 1.76, arqamEN 1.16) · 2026-11-27
Measured on: Intel(R) Xeon(R) Processor @ 2.10GHz, 2 cores, 8 GB; Linux 6.18.44-fc-v880 (x64); Node v22.23.4.
Each number is random digits (the first not 0), the same numbers on every machine. Each time is the average of 5 calls after 3 warm-up calls of the same number in the same library (the warm-ups also build the scale names). Sizes: characters of the number and of the words, then bytes in UTF-8 (an Arabic letter is 2 bytes). «split»: the colour markers (split: "on").
To measure your own machine: node tools/benchmark.js (or --quick for up to 100,000 digits) in the Arqam folder from GitHub; it writes this page with your results.
Row10 digits100 digits1,000 digits10,000 digits100,000 digits1,000,000 digits
Input number10 (10 B)100 (100 B)1,000 (1,000 B)10,000 (9.8 KB)100,000 (97.7 KB)1,000,000 (976.6 KB)
Arabic, no tashkeel: time0.15 ms0.14 ms0.72 ms7.23 ms53.9 ms691 ms
Arabic, no tashkeel: output91 (170 B)1,105 (2.0 KB)13,175 (24.5 KB)151,017 (283.0 KB)1,746,196 (3.21 MB)19,728,402 (36.46 MB)
Arabic, no tashkeel, split: time0.14 ms0.21 ms0.64 ms10.4 ms79.2 ms723 ms
Arabic, no tashkeel, split: output100 (179 B)1,204 (2.1 KB)14,174 (25.5 KB)160,998 (292.7 KB)1,846,090 (3.31 MB)20,727,396 (37.41 MB)
Arabic, full tashkeel: time77.5 µs0.17 ms1.15 ms10.4 ms127 ms1,542 ms
Arabic, full tashkeel: output157 (302 B)1,863 (3.5 KB)22,419 (42.6 KB)256,746 (489.5 KB)2,959,549 (5.53 MB)33,595,376 (62.91 MB)
Arabic, full tashkeel, split: time0.40 ms0.29 ms1.94 ms17.5 ms139 ms1,461 ms
Arabic, full tashkeel, split: output166 (311 B)1,962 (3.6 KB)23,418 (43.6 KB)266,727 (499.2 KB)3,059,443 (5.62 MB)34,594,370 (63.86 MB)
Arabic, part (endings): time86.5 µs0.17 ms1.05 ms11.0 ms99.9 ms1,338 ms
Arabic, part (endings): output112 (212 B)1,303 (2.4 KB)15,167 (28.4 KB)170,994 (322.0 KB)1,945,522 (3.59 MB)21,726,777 (40.27 MB)
Arabic, part (endings), split: time87.3 µs0.18 ms1.13 ms11.8 ms111 ms1,511 ms
Arabic, part (endings), split: output121 (221 B)1,402 (2.5 KB)16,166 (29.4 KB)180,975 (331.7 KB)2,045,416 (3.69 MB)22,725,771 (41.22 MB)
English, plain: time36.7 µs24.6 µs0.13 ms4.43 ms16.8 ms288 ms
English, plain: output103 (103 B)1,176 (1.1 KB)14,552 (14.2 KB)169,003 (165.0 KB)1,933,324 (1.84 MB)22,095,521 (21.07 MB)
English, UK style: time10.2 µs21.9 µs0.15 ms4.95 ms17.0 ms303 ms
English, UK style: output115 (115 B)1,292 (1.3 KB)15,720 (15.4 KB)180,843 (176.6 KB)2,051,412 (1.96 MB)23,285,329 (22.21 MB)
English, USD: time11.2 µs35.8 µs0.14 ms2.83 ms15.6 ms248 ms
English, USD: output136 (136 B)1,209 (1.2 KB)14,585 (14.2 KB)169,036 (165.1 KB)1,933,357 (1.84 MB)22,095,554 (21.07 MB)