MCPcopy Create free account
hub / github.com/dop251/goja / BenchmarkToString1

Function BenchmarkToString1

object_test.go:603–609  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

601}
602
603func BenchmarkToString1(b *testing.B) {
604 v := asciiString("test")
605
606 for i := 0; i < b.N; i++ {
607 v.toString()
608 }
609}
610
611func BenchmarkToString2(b *testing.B) {
612 v := asciiString("test")

Callers

nothing calls this directly

Calls 2

asciiStringTypeAlias · 0.85
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…