We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423431f commit 38ae6fdCopy full SHA for 38ae6fd
IntegrationTests/TestSuites/Sources/BenchmarkTests/main.swift
@@ -19,3 +19,15 @@ serialization.testSuite("Swift String to JavaScript") {
19
object.set("stringValue\(i)", jsString)
20
}
21
22
+
23
24
+let objectHeap = Benchmark("Object heap")
25
26
+let global = JSObjectRef.global
27
+let Object = global.Object.function!
28
+global.objectHeapDummy = .object(Object.new())
29
+objectHeap.testSuite("Increment and decrement RC") {
30
+ for _ in 0 ..< 100 {
31
+ _ = global.objectHeapDummy
32
+ }
33
+}
0 commit comments