Number to String

Benchmark published by System on

Description

Converting numbers to strings.

Setup

const num = 12345.6789;

Test Runner

Initializing...

Testing in
Test CaseOps/sec
String(num)
String(num);
ready
num.toString()
num.toString();
ready
num + ''
num + '';
ready
Template literal
`${num}`;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

Revision 1
publishedby Systemon