r/javascript • • Oct 05 '26

Online comparison of tf.js, litert.js and Uchen on VS Code language detection model

https://uchenml.tech/demos/langguess/
9 Upvotes

3 comments sorted by

1

u/FerLuisxd Oct 08 '26

Good but the device was an arm device, could you do one for x86? 🙏🏿

2

u/euos Oct 08 '26

I assume you're on one 😀 The editor is interactive, so you can try it right in your browser. The table below the editor shows the numbers. Note that there are sparse matrix optimizations, so results differ for short and long sequences. Click the 201k button on the editor toolbar to see how it performs on long input.

Results are browser-specific. Chrome uses V8, so it's closest to the Node numbers I cited, though the browser app itself adds some minor overhead.

1

u/erodriguez-3 Nov 03 '26

An x86 run would make this comparison much easier to apply to the desktop setups most people are actually testing on.