Deno has the same compile feature as bun has, so to achieve reliable test parity with Bun, the Deno application should be compiled. Additionally deno has deno bundle feature that bundles and minifies with esbuild, even though compile has its own minification, bundle could be used and tested to see if it could provide additional perfomance improvements or parity with the bun compile feature.
The build compile task:
deno compile --allow-env --allow-net --allow-read --allow-sys app.js