aboutsummaryrefslogtreecommitdiff
path: root/generator/node_modules/xmlbuilder/perf/basic/object.coffee
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-05-12 17:18:54 +0200
committerRaindropsSys <raindrops@equestria.dev>2024-05-12 17:18:54 +0200
commitfcdb5ca193406ef02dba8db4d7684d8c74089552 (patch)
tree223edcc76b54d18575d2c3bcd87ed321f8a896d6 /generator/node_modules/xmlbuilder/perf/basic/object.coffee
parentd9337f848b94f33aa8641acced33c6c2e5efc26e (diff)
downloadatomic-fcdb5ca193406ef02dba8db4d7684d8c74089552.tar.gz
atomic-fcdb5ca193406ef02dba8db4d7684d8c74089552.tar.bz2
atomic-fcdb5ca193406ef02dba8db4d7684d8c74089552.zip
Updated 9 files and added 103 files (automated)
Diffstat (limited to 'generator/node_modules/xmlbuilder/perf/basic/object.coffee')
-rw-r--r--generator/node_modules/xmlbuilder/perf/basic/object.coffee21
1 files changed, 21 insertions, 0 deletions
diff --git a/generator/node_modules/xmlbuilder/perf/basic/object.coffee b/generator/node_modules/xmlbuilder/perf/basic/object.coffee
new file mode 100644
index 0000000..ac7df51
--- /dev/null
+++ b/generator/node_modules/xmlbuilder/perf/basic/object.coffee
@@ -0,0 +1,21 @@
+perf 'Create simple object', 100000, (run) ->
+ obj =
+ ele: "simple element"
+ person:
+ name: "John"
+ '@age': 35
+ '?pi': 'mypi'
+ '#comment': 'Good guy'
+ '#cdata': 'well formed!'
+ unescaped:
+ '#raw': '&<>&'
+ address:
+ city: "Istanbul"
+ street: "End of long and winding road"
+ contact:
+ phone: [ "555-1234", "555-1235" ]
+ id: () -> return 42
+ details:
+ '#text': 'classified'
+
+ run () -> xml(obj)