pshdev1030 / raytrace

A performance comparison between TS and JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raytrace

A comparison between original raytrace.ts performance VS a hand-written JS port.

Live Test - both pages show render time in console

Licence

The original TypeScript version and this JS translation are licenced under the Apache-2.0 licence.

How to test locally

  • fork or clone this repo
  • enter raytrace directory (cd raytrace)
  • npm i
  • npm run build
  • run any local server to test raytracer.html or rt.vanilla.html on your localhost

About

A performance comparison between TS and JS


Languages

Language:TypeScript 56.5%Language:JavaScript 41.7%Language:HTML 1.8%