No, it would not run at the same speed as tfjs-node. There are a few reasons for this:
tfjs-node uses native C++ bindings to the TensorFlow C library, which provides significant performance benefits.
The CPU backend that comes with tfjs-core is implemented in JavaScript, which is generally slower for numerical computations compared to native C++ code.
Yes, the C bindings can be imported separately, but it’s not as straightforward as just importing another JavaScript module. The C bindings are part of what makes tfjs-node fast.
Use @tensorflow/tfjs-node-gpu or @tensorflow/tfjs-node: These packages include the C++ bindings and will give you the best performance .