Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../querystring/../@protobufjs/.././engine.io/../hasown/.././quick-format-unescaped
الملفات الموجودة في هذا الـ Path:
.
..
.github
LICENSE
benchmark.js
index.js
package.json
readme.md
test

مشاهدة ملف: benchmark.js

var bench = require('fastbench')
var utilFormat = require('util').format
var quickFormat = require('./')

var run = bench([
  function util(cb) {
    utilFormat('%s %j %d', 'a', {a: {x: 1}}, 1)
    setImmediate(cb)
  },
  function quick(cb) {
    quickFormat('%s %j %d', 'a', [{a: {x: 1}}, 1], null)
    setImmediate(cb)
  },
  function utilWithTailObj(cb) {
    utilFormat('hello %s %j %d', 'world', {obj: true}, 4, {another: 'obj'})
    setImmediate(cb)
  },
  function quickWithTailObj(cb) {
    quickFormat('hello %s %j %d', 'world', [{obj: true}, 4, {another: 'obj'}], null)
    setImmediate(cb)
  }
], 100000)

run(run)