DEV Community

Stanislav Berkov
Stanislav Berkov

Posted on • Edited on

Measure TS script performance

There are websites like https://jsbench.me/ but for JS. You need to compile code fist. There is an alternative tool for it: typescript playground.

https://www.typescriptlang.org/play

It even supports VIM edit mode (check in plugins).
It looks like this

TypeScript playground measuring snippet performance

And it also generates a sharable link for your playground e.g. https://www.typescriptlang.org/play?ssl=10&ssc=1&pln=10&pc=2#code/GYVwdgxgLglg9mABAcwKZQCKojAtgQwBsAFQ-CVAZwAoA3IkVALkTBFwCNUAnAGkVQAHSjEIIWbTj34EAHlhwESZCpUQBeRAEYADAEoJ7Lt0QBvAFCIriQukTBu5WAgwxkMKGs06A3Jeu2UIi4IISwgoQwPBraftaIAO4AFqKoiNQAsvhQSQB0+Bw0WTm53HDgACZ0DGkAVMGh4ZE8eogA9A1hMBFRJgC0iPSEjK0AfALCogiIAGQz-vFW1HIKeESk5FQammyEhIgAPgfB+PLYa8qbagMOTvBgru6eiOP6rRaL1iFdPdG1mro4p97I5oPdHh5KABqKFAqwAXwWiG46BA3CQtzBLjckL8iPMEAQlCCsAgAGsAMowABeaQB7UQAGYAEx+QlgYmICDkJJ01ioBKILKCAA8kmM-HFPFG1D0fkEPGAcG4BEgqFyBG4ZOoACJifhuFA+pqyTq5eYlSZqIFEDAYr5bYgRdoAPo6d1u90+W0w95ImDAdLciC83JJfA0UmUmmoPR+4FcolBIYxYOhtBQahRqm0vRI+ECQiUNIfYHszkpzQZ1ZKDaqLMwck51D8ZmoPpaZn8TvmhNp9XFzPZmP8Ia96yIxEK7iW1UUDUG7U61BgCrGxdmtlEuC2XJiZDUaez-BqjWoCNo1C6hIeJJ9fs6-h6qAGo0mx+IZer9das3m8xHsqc7qiaur6oaP6mualrpDadreN6drOlono6KhiG+mYSLlsmRAxNW5y1ioVANk2I6IG2HZdtozLmlOipASe86gV+a7vua5Y7uq+6HgxKpMSB56UJeupgHA948qgH7Pq+kHSSubEbnGPhAA

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay