Skip to main content

Posts

Showing posts with the label Deno

Speed test of wasm at node vs deno vs wapm

Recently, I have created an app in Rust language for  macOS then to make it cross-platform, ported it for other platforms using WebAssembly. I have ported the app for these platforms: WAPM ⟶ Using WASI file as binary, i.e., generated via Rust Deno ⟶ Using WASM file as library, i.e., generated via Rust Node.js ⟶ Using WASM file as library, i.e., generated via Rust Initially, I had made it on macOS where it runs very fast but on Windows it gets slowed down so much that is clearly visible. So I tried to measure it somehow for which I took a command for the app which decodes the input parameter. Here is that command, > ds -d 31kk ⟶ 3-1-2020 Now I need to measure the timelapse after each execution for which I'd used > w32tm /query /status /verbose | find "Time since" && node ds -d 31kk && w32tm /query /status /verbose | find "Time since" && deno ds -d 31kk && w32tm /query /status /verbose | find "Time sin...

How to located the installed & cache directory path for Deno?

Recently, I had installed the Deno v0.18.0 using brew on macOS . Then tried couple of samples given there. I was amazed to see, how closely it behaves like Golang . When we run the script for the first time, Deno downloads all the dependencies provided in the import statement that is required to run the script. When I ran the same script next time then it doesn't download any dependency. So that means it caches all those dependencies and uses the same next time. Now I was eager to see the cache , but can't find it at the usual locations but after some time with the help of Google , I was able to find the correct location. So I thought it would be pretty useful to put it in blog for ready reckoner. So here is the sample path on all major platforms Platform / Location Binary Cache Windows C:\Users\me\AppData\Roaming\deno\ C:\Users\me\AppData\Local\deno\ macOS /Users/me/.local/bin/ /Users/me/Library/Caches/deno/ Linux /home/me/.lo...