var bench = require('fastbench')
var inspect = require('util').inspect
var jsonStringifySafe = require('json-stringify-safe')
var fastSafeStringify = require('./')
var obj = {foo: 1}
var circ = JSON.parse(JSON.stringify(obj))
circ.o = {obj: circ}
var deep = require('./package.json')
deep.deep = JSON.parse(JSON.stringify(deep))
deep.deep.deep = JSON.parse(JSON.stringify(deep))
deep.deep.deep.deep = JSON.parse(JSON.stringify(deep))

var deepCirc = JSON.parse(JSON.stringify(deep))
deepCirc.deep.deep.deep.circ = deepCirc
deepCirc.deep.deep.circ = deepCirc
deepCirc.deep.circ = deepCirc

var run = bench([
  function inspectBench (cb) {
    inspect(obj)
    setImmediate(cb)
  },
  function jsonStringifySafeBench (cb) {
    jsonStringifySafe(obj)
    setImmediate(cb)
  },
  function fastSafeStringifyBench (cb) {
    fastSafeStringify(obj)
    setImmediate(cb)
  },
  function inspectCircBench (cb) {
    inspect(circ)
    setImmediate(cb)
  },
  function jsonStringifyCircSafeBench (cb) {
    jsonStringifySafe(circ)
    setImmediate(cb)
  },
  function fastSafeStringifyCircBench (cb) {
    fastSafeStringify(circ)
    setImmediate(cb)
  },
  function inspectDeepBench (cb) {
    inspect(deep)
    setImmediate(cb)
  },
  function jsonStringifySafeDeepBench (cb) {
    jsonStringifySafe(deep)
    setImmediate(cb)
  },
  function fastSafeStringifyDeepBench (cb) {
    fastSafeStringify(deep)
    setImmediate(cb)
  },
  function inspectDeepCircBench (cb) {
    inspect(deepCirc)
    setImmediate(cb)
  },
  function jsonStringifySafeDeepCircBench (cb) {
    jsonStringifySafe(deepCirc)
    setImmediate(cb)
  },
  function fastSafeStringifyDeepCircBench (cb) {
    fastSafeStringify(deepCirc)
    setImmediate(cb)
  }
], 10000)

run(run)

@@ -157,16 +157,67 @@
 e('./')%0A
+var array = new Array(10).fill(0).map((_, i) =%3E i)%0A
 var obj 
@@ -224,17 +224,21 @@
 = %7Bfoo: 
-1
+array
 %7D%0Avar ci
@@ -293,16 +293,23 @@
 bj: circ
+, array
 %7D%0Avar de
@@ -488,16 +488,35 @@
 y(deep))
+%0Adeep.array = array
 %0A%0Avar de
@@ -624,32 +624,32 @@
 circ = deepCirc%0A
-
 deepCirc.deep.ci
@@ -661,16 +661,39 @@
 deepCirc
+%0AdeepCirc.array = array
 %0A%0Avar ru

add arrays to values