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

Function BenchmarkToUTF8String

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

Source from the content-addressed store, hash-verified

627}
628
629func BenchmarkToUTF8String(b *testing.B) {
630 var s String = asciiString("test")
631 for i := 0; i < b.N; i++ {
632 _ = s.String()
633 }
634}
635
636func BenchmarkAdd(b *testing.B) {
637 var x, y Value

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
asciiStringTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…