├── .github └── workflows │ ├── bench.yml │ ├── check_regressions.yml │ ├── run_all.yml │ ├── runner_warmer.yml │ └── watch_bench.yml ├── .gitignore ├── README.md ├── RESULTS-v18.md ├── RESULTS-v20.md ├── RESULTS-v21.md ├── RESULTS-v22.md ├── RESULTS-v23.md ├── RESULTS-v24.md ├── bench ├── add-property.mjs ├── array-append.mjs ├── array-creation.mjs ├── blob.mjs ├── compression.mjs ├── crypto-verify.mjs ├── date-format-iso.mjs ├── date-format.mjs ├── date-string-coersion.mjs ├── deleting-properties.mjs ├── error.mjs ├── includes-vs-raw-comparison.mjs ├── keys-vs-getownpropertynames.mjs ├── last-array-item.mjs ├── math-floor-vs-tilde.mjs ├── object-creation.mjs ├── parse-int.mjs ├── possible-undefined-function.mjs ├── private-property.mjs ├── property-access-transition.mjs ├── property-getter-access.mjs ├── property-setter-access.mjs ├── replace-vs-replaceall-comparison.mjs ├── shallow-copy.mjs ├── sort-map.mjs ├── spread-vs-object-assign.mjs ├── stream-readable.mjs ├── stream-writable.mjs ├── string-concat.mjs ├── string-endsWith.mjs ├── string-searching.mjs ├── string-startsWith.mjs ├── super-vs-this.mjs └── unix-time.mjs ├── bin.mjs ├── common.mjs ├── fixtures └── words_dictionary.json.gz ├── markdown.mjs ├── package.json ├── scripts ├── check-regression.mjs ├── generate-reports.mjs ├── generate-run-all.mjs ├── utils.mjs └── write-bench-results.mjs ├── utils.mjs ├── v18 ├── .gitkeep ├── RESULTS-v18_0_0.md ├── RESULTS-v18_20_1.md ├── RESULTS-v18_20_2.md ├── RESULTS-v18_20_3.md ├── RESULTS-v18_20_4.md ├── RESULTS-v18_20_7.md ├── RESULTS-v18_20_8.md ├── v18_0_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v18_20_7 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md └── v18_20_8 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v20 ├── .gitkeep ├── RESULTS-v20_0_0.md ├── RESULTS-v20_19_0.md ├── RESULTS-v20_19_1.md ├── v20_0_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v20_19_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md └── v20_19_1 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v21 ├── .gitkeep ├── RESULTS-v21_0_0.md ├── RESULTS-v21_7_2.md ├── RESULTS-v21_7_3.md ├── v21_0_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v21_7_2 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md └── v21_7_3 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v22 ├── .gitkeep ├── RESULTS-v22_0_0.md ├── RESULTS-v22_14_0.md ├── RESULTS-v22_15_0.md ├── v22_0_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v22_14_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md └── v22_15_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v23 ├── .gitkeep ├── RESULTS-v23_0_0.md ├── RESULTS-v23_10_0.md ├── RESULTS-v23_11_0.md ├── v23_0_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compare-using-instanceof.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── function-return.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── optional-chain-vs-and-operator.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md ├── v23_10_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md └── v23_11_0 │ ├── add-property.md │ ├── array-append.md │ ├── array-creation.md │ ├── blob.md │ ├── compression.md │ ├── crypto-verify.md │ ├── date-format-iso.md │ ├── date-format.md │ ├── date-string-coersion.md │ ├── deleting-properties.md │ ├── error.md │ ├── includes-vs-raw-comparison.md │ ├── keys-vs-getownpropertynames.md │ ├── last-array-item.md │ ├── math-floor-vs-tilde.md │ ├── object-creation.md │ ├── parse-int.md │ ├── possible-undefined-function.md │ ├── private-property.md │ ├── property-access-transition.md │ ├── property-getter-access.md │ ├── property-setter-access.md │ ├── replace-vs-replaceall-comparison.md │ ├── shallow-copy.md │ ├── sort-map.md │ ├── spread-vs-object-assign.md │ ├── stream-readable.md │ ├── stream-writable.md │ ├── string-concat.md │ ├── string-endsWith.md │ ├── string-searching.md │ ├── string-startsWith.md │ ├── super-vs-this.md │ └── unix-time.md └── v24 ├── RESULTS-v24_0_0.md └── v24_0_0 ├── add-property.md ├── array-creation.md ├── blob.md ├── compression.md ├── crypto-verify.md ├── date-format-iso.md ├── date-format.md ├── date-string-coersion.md ├── deleting-properties.md ├── error.md ├── includes-vs-raw-comparison.md ├── keys-vs-getownpropertynames.md ├── last-array-item.md ├── math-floor-vs-tilde.md ├── object-creation.md ├── parse-int.md ├── possible-undefined-function.md ├── private-property.md ├── property-access-transition.md ├── property-getter-access.md ├── property-setter-access.md ├── replace-vs-replaceall-comparison.md ├── shallow-copy.md ├── sort-map.md ├── spread-vs-object-assign.md ├── stream-readable.md ├── stream-writable.md ├── string-concat.md ├── string-endsWith.md ├── string-searching.md ├── string-startsWith.md ├── super-vs-this.md └── unix-time.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | tags 3 | package-lock.json 4 | bench-result.md 5 | -------------------------------------------------------------------------------- /bench/array-creation.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Array Creation') 4 | 5 | suite 6 | .add('new Array', function () { 7 | return new Array(1024 * 1024) 8 | }) 9 | .add('Array.from', function () { 10 | return Array.from({ length: 1024 * 1024 }) 11 | }) 12 | 13 | await suite.runAndPrintResults() 14 | -------------------------------------------------------------------------------- /bench/compression.mjs: -------------------------------------------------------------------------------- 1 | import { fileURLToPath } from 'node:url' 2 | import fs from 'node:fs' 3 | import zlib from 'node:zlib' 4 | import { createBenchmarkSuite } from '../common.mjs' 5 | 6 | const fixturePath = fileURLToPath( 7 | new URL('../fixtures/words_dictionary.json.gz', import.meta.url) 8 | ) 9 | let fixtureData = fs.readFileSync(fixturePath) 10 | fixtureData = zlib.gunzipSync(fixtureData) 11 | 12 | const suite = createBenchmarkSuite('Compression algorithms', { 13 | tableHeaderColumns: ['name', 'total time', 'samples'], 14 | mode: 'time' 15 | }) 16 | 17 | suite 18 | .add('Deflate', function () { 19 | zlib.deflateSync(fixtureData) 20 | }) 21 | .add('Gzip', function () { 22 | zlib.gzipSync(fixtureData) 23 | }) 24 | 25 | await suite.runAndPrintResults() 26 | -------------------------------------------------------------------------------- /bench/date-string-coersion.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Date String coersion') 4 | 5 | suite 6 | .add('Using String()', function () { 7 | const date = new Date() 8 | const value = String(date) 9 | return value 10 | }) 11 | .add('Using brackets {}', function () { 12 | const date = new Date() 13 | const value = `${date}` 14 | return value 15 | }) 16 | .add("Using '' + ", function () { 17 | const date = new Date() 18 | const value = '' + date 19 | return value 20 | }) 21 | .add('Using date.toString()', function () { 22 | const date = new Date() 23 | const value = date.toString() 24 | return value 25 | }) 26 | 27 | await suite.runAndPrintResults() 28 | -------------------------------------------------------------------------------- /bench/error.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Node.js Error') 4 | 5 | suite 6 | .add('Error', function () { 7 | return new Error('test') 8 | }) 9 | .add('NodeError', function () { 10 | return new TypeError('test') 11 | }) 12 | .add('NodeError Range', function () { 13 | return new RangeError('test') 14 | }) 15 | 16 | await suite.runAndPrintResults() 17 | -------------------------------------------------------------------------------- /bench/keys-vs-getownpropertynames.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Object.keys vs Object.getOwnPropertyNames comparison') 4 | 5 | suite 6 | .add('Using Object.keys()', function () { 7 | const object = { 8 | a: 'somestring', 9 | b: 42, 10 | c: false, 11 | } 12 | const keys = Object.keys(object) 13 | return keys 14 | }) 15 | .add('Using Object.getOwnPropertyNames()', function () { 16 | const object = { 17 | a: 'somestring', 18 | b: 42, 19 | c: false, 20 | } 21 | const keys = Object.getOwnPropertyNames(object) 22 | return keys 23 | }) 24 | 25 | await suite.runAndPrintResults() 26 | -------------------------------------------------------------------------------- /bench/math-floor-vs-tilde.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Math.floor vs ~') 4 | 5 | suite 6 | .add('Math.floor (small)', function () { 7 | return Math.floor(15.95) 8 | }) 9 | .add('~ (small)', function () { 10 | return ~15.95 11 | }) 12 | .add('Math.floor (long)', function () { 13 | return Math.floor(15.95231232132132) 14 | }) 15 | .add('~ (long)', function () { 16 | return ~15.95231232132132 17 | }) 18 | 19 | await suite.runAndPrintResults() 20 | -------------------------------------------------------------------------------- /bench/object-creation.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Object Creation') 4 | 5 | function EmptyPrototype() {} 6 | EmptyPrototype.prototype = Object.create(null) 7 | 8 | class C { 9 | constructor () {} 10 | } 11 | 12 | suite 13 | .add('Object.create(null)', function () { 14 | return Object.create(null) 15 | }) 16 | .add('Object.create({})', function () { 17 | return Object.create({}) 18 | }) 19 | .add('new Function with empty prototype', function () { 20 | return new EmptyPrototype() 21 | }) 22 | .add('Empty class', function () { 23 | return new C() 24 | }) 25 | 26 | await suite.runAndPrintResults() 27 | -------------------------------------------------------------------------------- /bench/parse-int.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Parsing Integer') 4 | 5 | suite 6 | .add('Using parseInt(x, 10) - small number (2 len)', function () { 7 | return parseInt('5', 10) 8 | }) 9 | .add('Using parseInt(x, 10) - big number (10 len)', function () { 10 | return parseInt('9999999999', 10) 11 | }) 12 | .add('Using + - small number (2 len)', function () { 13 | return +'5' 14 | }) 15 | .add('Using + - big number (10 len)', function () { 16 | return +'9999999999' 17 | }) 18 | 19 | await suite.runAndPrintResults() 20 | -------------------------------------------------------------------------------- /bench/possible-undefined-function.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Possible undefined Function') 4 | 5 | suite 6 | .add('Using if to check function existence', function () { 7 | const emptyObject = Object.create({}) 8 | if (emptyObject.undefinedFunction) { 9 | emptyObject.undefinedFunction() 10 | } 11 | return emptyObject 12 | }) 13 | .add('Using ? operator to avoid rejection', function () { 14 | const emptyObject = Object.create({}) 15 | emptyObject.undefinedFunction?.() 16 | return emptyObject 17 | }) 18 | 19 | await suite.runAndPrintResults() 20 | -------------------------------------------------------------------------------- /bench/replace-vs-replaceall-comparison.mjs: -------------------------------------------------------------------------------- 1 | import { skipIfVersionWithMessage } from '../utils.mjs' 2 | import { createBenchmarkSuite } from '../common.mjs' 3 | 4 | skipIfVersionWithMessage('<15.0.0', 'replace vs replaceAll comparison') 5 | 6 | const suite = createBenchmarkSuite('replace vs replaceAll comparison') 7 | 8 | suite 9 | .add('Using replace(//g)', function () { 10 | const text = '1+2+3+4+5+6+7+8+9' 11 | const replaced = text.replace(/\+/g, ' ') 12 | return replaced 13 | }) 14 | .add('Using replaceAll()', function () { 15 | const text = '1+2+3+4+5+6+7+8+9' 16 | const replaced = text.replaceAll('+', ' ') 17 | return replaced 18 | }) 19 | .add('Using replaceAll(//g)', function () { 20 | const text = '1+2+3+4+5+6+7+8+9' 21 | const replaced = text.replaceAll(/\+/g, ' ') 22 | return replaced 23 | }) 24 | 25 | await suite.runAndPrintResults() 26 | -------------------------------------------------------------------------------- /bench/sort-map.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Sorting Map') 4 | 5 | const map = new Map() 6 | map.set('aa', 1) 7 | map.set('a', 1) 8 | map.set('c', 1) 9 | map.set('bb', 1) 10 | map.set('bd', 1) 11 | map.set('b', 1) 12 | 13 | suite 14 | .add('Sort using default', function () { 15 | return new Map([...map].sort()) 16 | }) 17 | .add('Sort using first char', function () { 18 | return new Map([...map].sort((a, b) => (a[0] > b[0] ? 1 : -1))) 19 | }) 20 | .add('Sort using localeCompare', function () { 21 | return new Map([...map].sort((a, b) => String(a[0]).localeCompare(b[0]))) 22 | }) 23 | 24 | await suite.runAndPrintResults() 25 | -------------------------------------------------------------------------------- /bench/string-concat.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from "../common.mjs" 2 | 3 | const suite = createBenchmarkSuite('String concat') 4 | 5 | const k = 'abcdefghijklmnopqrstuvz' 6 | const o = '1' 7 | const l = '2' 8 | 9 | suite 10 | .add('Using + sign', function () { 11 | return k + '-' + o + '-' + l 12 | }) 13 | .add('Using backtick (`)', function () { 14 | return `${k}-${o}-${l}` 15 | }) 16 | .add('Using array.join', function () { 17 | return [k, o, l].join('-') 18 | }) 19 | 20 | await suite.runAndPrintResults() 21 | -------------------------------------------------------------------------------- /bench/super-vs-this.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Super vs This') 4 | 5 | class Base { 6 | foo() { 7 | return 10 * 1e2 8 | } 9 | } 10 | 11 | class SuperClass extends Base { 12 | bar() { 13 | const tmp = 20 * 23 14 | return super.foo() + tmp 15 | } 16 | } 17 | 18 | class ThisClass extends Base { 19 | bar() { 20 | const tmp = 20 * 23 21 | return this.foo() + tmp 22 | } 23 | } 24 | 25 | suite 26 | .add('Using super', function () { 27 | const cls = new SuperClass() 28 | const value = cls.bar() 29 | return value 30 | }) 31 | .add('Using this', function () { 32 | const cls = new ThisClass() 33 | const value = cls.bar() 34 | return value 35 | }) 36 | 37 | await suite.runAndPrintResults() 38 | -------------------------------------------------------------------------------- /bench/unix-time.mjs: -------------------------------------------------------------------------------- 1 | import { createBenchmarkSuite } from '../common.mjs' 2 | 3 | const suite = createBenchmarkSuite('Getting unix time') 4 | 5 | suite 6 | .add('new Date().getTime()', function () { 7 | return new Date().getTime() 8 | }) 9 | .add('Date.now()', function () { 10 | return Date.now() 11 | }) 12 | 13 | await suite.runAndPrintResults() 14 | -------------------------------------------------------------------------------- /bin.mjs: -------------------------------------------------------------------------------- 1 | import { readdir } from 'node:fs' 2 | import { join } from 'node:path' 3 | import { platform, arch, cpus, totalmem } from 'node:os' 4 | import { spawnSync } from 'node:child_process' 5 | 6 | const machineInfo = `${platform()} ${arch()} | ${cpus().length} vCPUs | ${(totalmem() / (1024 ** 3)).toFixed(1)}GB Mem` 7 | 8 | const writter = process.stdout 9 | 10 | writter.write('# Node.js Benchmark Operations') 11 | writter.write(`\n 12 | * __Machine:__ ${machineInfo} 13 | * __Node:__ \`${process.version}\` 14 | * __Run:__ ${new Date()} 15 | `) 16 | 17 | readdir(join(import.meta.dirname, './bench'), (_err, files) => { 18 | for (const file of files) { 19 | const out = spawnSync(process.execPath, ['--allow-natives-syntax', join(import.meta.dirname, './bench', file)]).stdout 20 | writter.write('\n' + out.toString()) 21 | } 22 | writter.end() 23 | }) 24 | -------------------------------------------------------------------------------- /fixtures/words_dictionary.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelGSS/nodejs-bench-operations/92a1095e6e76659716c838fc628f7875d0f65e0f/fixtures/words_dictionary.json.gz -------------------------------------------------------------------------------- /scripts/utils.mjs: -------------------------------------------------------------------------------- 1 | import { exists } from 'node:fs'; 2 | import { resolve } from 'node:path'; 3 | import { fileURLToPath } from 'node:url'; 4 | import { promisify } from 'node:util'; 5 | 6 | export const existAsync = promisify(exists); 7 | 8 | export const majorNodeFolderRegexp = /^v\d{2}$/; 9 | export const nodeFolderVersionRegexp = /^v\d{1,2}_\d{1,2}_\d{1,2}$/; 10 | 11 | export const rootFolder = resolve(fileURLToPath(new URL('.', import.meta.url)), '..'); 12 | -------------------------------------------------------------------------------- /utils.mjs: -------------------------------------------------------------------------------- 1 | import { satisfies } from 'semver' 2 | import { H2 } from './markdown.mjs' 3 | 4 | export function skipIfVersion(version) { 5 | if (satisfies(process.version, version)) { 6 | process.exit(0) 7 | } 8 | } 9 | 10 | export function skipIfVersionWithMessage(version, name) { 11 | if (satisfies(process.version, version)) { 12 | console.log(H2(name)) 13 | console.log('This is not supported in this Node.js version') 14 | 15 | process.exit(0) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /v18/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelGSS/nodejs-bench-operations/92a1095e6e76659716c838fc628f7875d0f65e0f/v18/.gitkeep -------------------------------------------------------------------------------- /v18/v18_0_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|221|111| 6 | |Array.from|19|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:09:24 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|163.79 ms|1| 6 | |Gzip|164.42 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:21:47 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|2,041|1021| 6 | |crypto.verify('RSA-SHA256')|2,074|1038| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:25:31 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|2,423,467|1211867| 6 | |fromUnixToISOString(new Date())|1,941,801|971064| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:31:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|995,715|497858| 6 | |Using brackets {}|1,005,974|503049| 7 | |Using '' + |1,001,419|500711| 8 | |Using date.toString()|1,112,641|556321| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 18:37:04 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v18.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v18/v18_0_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|305,816|152962| 6 | |NodeError|296,057|148114| 7 | |NodeError Range|269,947|134975| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:45:19 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_0_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|41,949,860|21032331| 6 | |Using Object.getOwnPropertyNames()|42,936,166|21468683| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:55:09 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|105,682,967|52841499| 6 | |~ (small)|103,630,178|51825372| 7 | |Math.floor (long)|105,816,654|52908337| 8 | |~ (long)|107,014,259|53507148| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:00:47 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v18.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v18/v18_0_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|955,002|480840| 6 | |Using ? operator to avoid rejection|974,240|491670| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:14:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,337,313|1668657| 6 | |Using replaceAll()|2,990,885|1495499| 7 | |Using replaceAll(//g)|3,020,554|1510831| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:35:50 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_0_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|245,457|122743| 6 | |Sort using first char|1,174,112|589770| 7 | |Sort using localeCompare|1,053,397|526913| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:45:48 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_0_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|2,065|1034| 6 | |streams.web.Readable reading 1e3 * "some data"|474|238| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:54:47 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|4,191|2100| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,498|765| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:02:17 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|106,811,992|53406010| 6 | |Using backtick (`)|98,869,438|49446822| 7 | |Using array.join|10,058,264|5029420| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:06:08 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_0_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|22,788,255|11407684| 6 | |Using this|84,758,528|42382096| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:22:52 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_0_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|9,484,442|4746628| 6 | |Date.now()|18,890,563|9446634| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:30:07 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|230|116| 6 | |Array.from|20|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:11:57 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|133.45 ms|1| 6 | |Gzip|133.76 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:21:10 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,777|3389| 6 | |crypto.verify('RSA-SHA256')|6,831|3416| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:25:47 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|2,448,991|1227420| 6 | |fromUnixToISOString(new Date())|2,038,687|1019345| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:28:48 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|297,834|148918| 6 | |NodeError|280,677|140339| 7 | |NodeError Range|263,409|131859| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:46:14 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.7` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_7/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|42,592,864|21299605| 6 | |Using Object.getOwnPropertyNames()|45,100,244|22553861| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:55:39 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|98,920,172|49460097| 6 | |~ (small)|106,508,076|53254049| 7 | |Math.floor (long)|102,982,117|51491089| 8 | |~ (long)|94,409,873|47248576| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:01:58 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v18.20.7` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v18/v18_20_7/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|691,219|352821| 6 | |Using ? operator to avoid rejection|733,967|368303| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:12:02 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,328,445|1666114| 6 | |Using replaceAll()|2,825,284|1412812| 7 | |Using replaceAll(//g)|2,909,544|1454868| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:37:26 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.7` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_7/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|253,234|126618| 6 | |Sort using first char|1,295,833|648022| 7 | |Sort using localeCompare|1,156,537|578334| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:43:57 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.7` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_7/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,956|979| 6 | |streams.web.Readable reading 1e3 * "some data"|590|296| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:55:06 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|4,801|2498| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,536|771| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:59:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|102,367,091|51228424| 6 | |Using backtick (`)|100,723,564|50367104| 7 | |Using array.join|10,980,112|5490662| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:04:25 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.7` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_7/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|83,819,580|41982173| 6 | |Using this|87,807,916|43903984| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:27:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_7/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|9,632,742|4817081| 6 | |Date.now()|19,215,625|9610550| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:28:40 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.7` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|225|113| 6 | |Array.from|20|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:08:47 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|135.77 ms|1| 6 | |Gzip|135.21 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:19:51 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,706|3354| 6 | |crypto.verify('RSA-SHA256')|6,702|3352| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:27:19 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|2,487,826|1243914| 6 | |fromUnixToISOString(new Date())|2,012,628|1006315| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:29:24 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|298,880|149441| 6 | |NodeError|287,382|143695| 7 | |NodeError Range|262,777|131394| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:45:00 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.8` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_8/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|42,869,944|21435603| 6 | |Using Object.getOwnPropertyNames()|44,195,039|22098390| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:54:35 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|104,670,557|52366020| 6 | |~ (small)|107,317,016|53665560| 7 | |Math.floor (long)|105,152,690|52647729| 8 | |~ (long)|105,362,861|52681445| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:01:21 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v18.20.8` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v18/v18_20_8/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|689,400|354345| 6 | |Using ? operator to avoid rejection|731,773|365889| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:12:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,355,854|1678451| 6 | |Using replaceAll()|2,900,242|1450197| 7 | |Using replaceAll(//g)|2,907,928|1455053| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:36:55 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.8` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_8/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|248,868|124509| 6 | |Sort using first char|1,222,537|611269| 7 | |Sort using localeCompare|1,149,448|574725| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:45:14 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.8` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_8/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,984|993| 6 | |streams.web.Readable reading 1e3 * "some data"|615|309| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:56:30 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|4,957|2479| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,605|805| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:00:41 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|106,233,012|53198708| 6 | |Using backtick (`)|106,599,886|53304705| 7 | |Using array.join|10,625,581|5313088| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:03:22 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v18.20.8` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v18/v18_20_8/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|83,734,796|41874874| 6 | |Using this|87,085,798|43546578| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:24:43 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v18/v18_20_8/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|9,870,433|4935234| 6 | |Date.now()|19,212,194|9607950| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:31:07 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v18.20.8` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelGSS/nodejs-bench-operations/92a1095e6e76659716c838fc628f7875d0f65e0f/v20/.gitkeep -------------------------------------------------------------------------------- /v20/v20_0_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|236|119| 6 | |Array.from|21|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:11:20 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|163.62 ms|1| 6 | |Gzip|164.15 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:20:37 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,461|3231| 6 | |crypto.verify('RSA-SHA256')|6,566|3284| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:26:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,475,527|749141| 6 | |fromUnixToISOString(new Date())|2,083,339|1042035| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:29:39 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|1,078,362|539225| 6 | |Using brackets {}|1,066,471|533333| 7 | |Using '' + |1,061,075|530539| 8 | |Using date.toString()|1,166,827|583426| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 18:39:47 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v20.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v20/v20_0_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|311,557|155793| 6 | |NodeError|294,792|147417| 7 | |NodeError Range|270,800|135429| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:47:36 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_0_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|42,411,740|21255285| 6 | |Using Object.getOwnPropertyNames()|43,986,675|21998758| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:55:54 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|100,161,618|50081051| 6 | |~ (small)|101,728,949|50878510| 7 | |Math.floor (long)|100,766,908|50415598| 8 | |~ (long)|102,102,872|51051447| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:03:52 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v20.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v20/v20_0_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,056,847|528550| 6 | |Using ? operator to avoid rejection|1,065,090|533803| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:14:05 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,291,330|1646338| 6 | |Using replaceAll()|3,057,941|1528979| 7 | |Using replaceAll(//g)|3,039,679|1520392| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:35:00 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_0_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|258,337|129169| 6 | |Sort using first char|1,325,846|663550| 7 | |Sort using localeCompare|1,211,550|605873| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:47:03 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_0_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|2,116|1066| 6 | |streams.web.Readable reading 1e3 * "some data"|519|261| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:55:22 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|6,137|3074| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,570|797| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:58:42 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|100,838,126|50457492| 6 | |Using backtick (`)|100,458,899|50251238| 7 | |Using array.join|10,765,516|5384352| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:07:07 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_0_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|95,596,369|47798196| 6 | |Using this|100,561,145|50280612| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:25:11 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_0_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|10,232,626|5116314| 6 | |Date.now()|19,747,052|9874274| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:30:25 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|238|120| 6 | |Array.from|21|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:12:15 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|134.81 ms|1| 6 | |Gzip|135.60 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:18:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,790|3396| 6 | |crypto.verify('RSA-SHA256')|6,821|3411| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:27:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,475,261|737772| 6 | |fromUnixToISOString(new Date())|2,095,701|1047921| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:31:49 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|1,071,184|535708| 6 | |Using brackets {}|886,667|443334| 7 | |Using '' + |1,034,394|517198| 8 | |Using date.toString()|1,158,234|579278| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 18:38:40 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v20.19.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v20/v20_19_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|316,240|158122| 6 | |NodeError|303,501|151751| 7 | |NodeError Range|270,976|135489| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:47:18 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|42,305,859|21156062| 6 | |Using Object.getOwnPropertyNames()|42,584,638|21314432| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:53:02 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|89,782,643|44895293| 6 | |~ (small)|90,267,281|45217858| 7 | |Math.floor (long)|88,367,555|44183921| 8 | |~ (long)|90,132,634|45066323| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:01:04 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v20.19.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v20/v20_19_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|850,239|433931| 6 | |Using ? operator to avoid rejection|961,499|484632| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:15:13 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,265,541|1633547| 6 | |Using replaceAll()|2,957,102|1478552| 7 | |Using replaceAll(//g)|2,992,583|1496752| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:37:11 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|253,196|126603| 6 | |Sort using first char|1,333,372|666824| 7 | |Sort using localeCompare|1,215,255|607758| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:44:53 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,892|948| 6 | |streams.web.Readable reading 1e3 * "some data"|1,444|723| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:57:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|8,015|4011| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,333|668| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:59:21 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|100,821,566|50464561| 6 | |Using backtick (`)|100,314,873|50157443| 7 | |Using array.join|10,483,282|5241644| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:03:42 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|95,751,126|47889192| 6 | |Using this|100,945,923|50481180| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:23:35 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|10,702,901|5352031| 6 | |Date.now()|20,477,283|10243413| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:29:17 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|224|113| 6 | |Array.from|21|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:10:22 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|134.04 ms|1| 6 | |Gzip|135.54 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:19:17 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,779|3390| 6 | |crypto.verify('RSA-SHA256')|6,602|3345| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:26:48 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,459,202|730320| 6 | |fromUnixToISOString(new Date())|2,099,626|1049867| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:30:12 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|314,645|157357| 6 | |NodeError|302,159|151113| 7 | |NodeError Range|272,820|136428| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:48:25 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.1` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_1/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|40,088,098|20066642| 6 | |Using Object.getOwnPropertyNames()|40,024,354|20013938| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:52:47 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|99,277,648|50178292| 6 | |~ (small)|99,263,564|49633223| 7 | |Math.floor (long)|101,142,058|50626787| 8 | |~ (long)|101,149,160|50574588| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:03:19 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v20.19.1` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v20/v20_19_1/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|849,054|424618| 6 | |Using ? operator to avoid rejection|951,573|477797| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:12:34 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,429,865|1715107| 6 | |Using replaceAll()|2,921,604|1460804| 7 | |Using replaceAll(//g)|3,031,082|1515564| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:35:16 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.1` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_1/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|255,349|127688| 6 | |Sort using first char|1,324,746|662929| 7 | |Sort using localeCompare|1,146,839|573426| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:46:11 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.1` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_1/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,916|959| 6 | |streams.web.Readable reading 1e3 * "some data"|1,507|754| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:57:54 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|7,675|3838| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,422|721| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:59:36 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|97,966,881|49309759| 6 | |Using backtick (`)|102,253,055|51126532| 7 | |Using array.join|10,622,660|5313685| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:04:08 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v20.19.1` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v20/v20_19_1/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|96,548,537|48295516| 6 | |Using this|101,592,949|51295628| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:23:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v20/v20_19_1/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|10,708,490|5354272| 6 | |Date.now()|20,520,473|10260238| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:32:27 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v20.19.1` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelGSS/nodejs-bench-operations/92a1095e6e76659716c838fc628f7875d0f65e0f/v21/.gitkeep -------------------------------------------------------------------------------- /v21/v21_0_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|263|132| 6 | |Array.from|23|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 16:58:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,229|3115| 6 | |crypto.verify('RSA-SHA256')|6,471|3236| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 17:15:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,502,132|751272| 6 | |fromUnixToISOString(new Date())|2,134,896|1067559| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 17:21:15 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|1,084,539|542307| 6 | |Using brackets {}|1,038,013|519007| 7 | |Using '' + |1,034,085|517043| 8 | |Using date.toString()|1,166,181|583151| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue Oct 29 2024 17:33:07 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v21.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v21/v21_0_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|390,719|195386| 6 | |NodeError|322,704|161357| 7 | |NodeError Range|320,555|160278| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 17:44:21 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_0_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|49,988,434|25004396| 6 | |Using Object.getOwnPropertyNames()|40,611,235|20329331| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 18:01:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|139,584,953|69800791| 6 | |~ (small)|93,191,462|46596005| 7 | |Math.floor (long)|94,132,130|47066072| 8 | |~ (long)|93,807,310|46903662| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue Oct 29 2024 18:12:57 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v21.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v21/v21_0_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,138,402|571533| 6 | |Using ? operator to avoid rejection|1,194,650|597776| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 18:35:58 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,406,272|1703138| 6 | |Using replaceAll()|3,103,340|1553501| 7 | |Using replaceAll(//g)|3,082,683|1541343| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:06:27 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_0_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|309,129|154663| 6 | |Sort using first char|1,390,385|696972| 7 | |Sort using localeCompare|1,278,265|639263| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:18:29 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_0_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|2,311|1157| 6 | |streams.web.Readable reading 1e3 * "some data"|2,259|1131| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 19:30:08 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|6,370|3187| 6 | |streams.web.WritableStream writing 1e3 * "some data"|2,137|1069| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 19:35:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|149,913,213|74956718| 6 | |Using backtick (`)|100,415,056|50686076| 7 | |Using array.join|9,837,415|4918717| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:41:26 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_0_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|127,533,917|63766978| 6 | |Using this|97,485,340|48761304| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 20:08:50 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_0_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|11,497,657|5749183| 6 | |Date.now()|20,082,158|10051704| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 20:14:21 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|262|132| 6 | |Array.from|23|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 16:58:24 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,333|3186| 6 | |crypto.verify('RSA-SHA256')|7,013|3507| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 17:15:57 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,486,039|743066| 6 | |fromUnixToISOString(new Date())|2,265,223|1132612| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 17:21:35 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|399,373|199689| 6 | |NodeError|331,174|165588| 7 | |NodeError Range|327,391|163740| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 17:44:41 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.2` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_2/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|52,310,619|26192902| 6 | |Using Object.getOwnPropertyNames()|42,894,121|21447065| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 18:01:57 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|141,245,277|70622770| 6 | |~ (small)|96,330,168|48174301| 7 | |Math.floor (long)|97,137,384|48568737| 8 | |~ (long)|103,618,719|51811947| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue Oct 29 2024 18:13:18 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v21.7.2` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v21/v21_7_2/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|983,058|491541| 6 | |Using ? operator to avoid rejection|1,138,704|581436| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 18:36:37 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,395,388|1697982| 6 | |Using replaceAll()|3,103,564|1554409| 7 | |Using replaceAll(//g)|3,078,037|1540531| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:07:08 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.2` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_2/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|308,601|154326| 6 | |Sort using first char|1,365,149|682579| 7 | |Sort using localeCompare|1,290,164|645120| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:18:49 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.2` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_2/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|2,104|1066| 6 | |streams.web.Readable reading 1e3 * "some data"|1,810|906| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 19:30:28 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|6,672|3337| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,898|958| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 19:36:05 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|152,549,011|76274521| 6 | |Using backtick (`)|101,703,711|50867120| 7 | |Using array.join|10,359,591|5180905| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:41:51 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.2` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_2/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|123,446,373|61723199| 6 | |Using this|97,806,865|48903987| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 20:09:10 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_2/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|11,495,029|5747517| 6 | |Date.now()|20,702,649|10351357| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 20:14:41 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.2` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|264|133| 6 | |Array.from|23|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 16:58:46 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,795|3398| 6 | |crypto.verify('RSA-SHA256')|6,891|3447| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 17:16:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,510,585|755302| 6 | |fromUnixToISOString(new Date())|2,097,247|1048784| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 17:21:55 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|911,226|455614| 6 | |Using brackets {}|910,457|455233| 7 | |Using '' + |1,090,541|545271| 8 | |Using date.toString()|1,165,321|582970| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue Oct 29 2024 17:33:47 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v21.7.3` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v21/v21_7_3/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|392,217|196140| 6 | |NodeError|331,055|165528| 7 | |NodeError Range|326,164|163091| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 17:45:01 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.3` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_3/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|52,284,779|26142458| 6 | |Using Object.getOwnPropertyNames()|42,781,095|21390549| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 18:02:17 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|129,517,485|64758769| 6 | |~ (small)|89,417,247|44708628| 7 | |Math.floor (long)|88,125,691|44062850| 8 | |~ (long)|90,874,320|45437164| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue Oct 29 2024 18:13:44 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v21.7.3` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v21/v21_7_3/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,037,863|521543| 6 | |Using ? operator to avoid rejection|1,177,121|588585| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 18:36:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,403,134|1701568| 6 | |Using replaceAll()|3,114,553|1557873| 7 | |Using replaceAll(//g)|3,168,608|1584305| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:06:47 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.3` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_3/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|307,245|153654| 6 | |Sort using first char|1,368,288|684892| 7 | |Sort using localeCompare|1,279,376|639854| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:19:31 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.3` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_3/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|2,167|1100| 6 | |streams.web.Readable reading 1e3 * "some data"|1,811|906| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 19:30:49 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|6,528|3265| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,841|932| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 19:36:29 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|136,701,211|68350609| 6 | |Using backtick (`)|98,384,466|49232334| 7 | |Using array.join|10,366,621|5183312| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue Oct 29 2024 19:42:11 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v21.7.3` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v21/v21_7_3/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|121,250,684|60625897| 6 | |Using this|90,374,201|45187267| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 20:09:30 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v21/v21_7_3/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|11,672,894|5836835| 6 | |Date.now()|19,354,623|9677314| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue Oct 29 2024 20:15:21 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v21.7.3` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelGSS/nodejs-bench-operations/92a1095e6e76659716c838fc628f7875d0f65e0f/v22/.gitkeep -------------------------------------------------------------------------------- /v22/v22_0_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|262|132| 6 | |Array.from|23|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:09:42 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|132.61 ms|1| 6 | |Gzip|133.98 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:24:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|7,023|3512| 6 | |crypto.verify('RSA-SHA256')|6,976|3489| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:25:12 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,325,111|663232| 6 | |fromUnixToISOString(new Date())|1,798,714|899546| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:29:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|921,039|460569| 6 | |Using brackets {}|988,788|494418| 7 | |Using '' + |918,982|459492| 8 | |Using date.toString()|1,003,214|501677| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 18:39:11 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v22.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v22/v22_0_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|329,395|164875| 6 | |NodeError|306,736|153369| 7 | |NodeError Range|282,503|141294| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:45:39 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_0_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|43,070,048|21535029| 6 | |Using Object.getOwnPropertyNames()|41,917,577|20962902| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:53:19 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|90,619,775|45314900| 6 | |~ (small)|93,015,083|46507872| 7 | |Math.floor (long)|86,681,598|43340939| 8 | |~ (long)|93,220,890|46610619| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:02:30 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v22.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v22/v22_0_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|934,940|467705| 6 | |Using ? operator to avoid rejection|1,059,144|529573| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:13:35 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,145,607|1572804| 6 | |Using replaceAll()|2,973,250|1486884| 7 | |Using replaceAll(//g)|3,049,274|1524751| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:36:21 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_0_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|307,111|153602| 6 | |Sort using first char|1,318,702|659352| 7 | |Sort using localeCompare|1,206,764|603448| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:44:28 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_0_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,963|984| 6 | |streams.web.Readable reading 1e3 * "some data"|1,619|810| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:55:57 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|6,109|3055| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,658|841| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:01:32 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|96,615,526|48307770| 6 | |Using backtick (`)|96,180,376|48090831| 7 | |Using array.join|10,276,170|5138214| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:07:29 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_0_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|94,137,705|47078584| 6 | |Using this|95,294,890|47647802| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:27:16 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_0_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|10,499,441|5249723| 6 | |Date.now()|19,972,228|9996494| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:28:58 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|262|132| 6 | |Array.from|23|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:09:06 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|135.24 ms|1| 6 | |Gzip|136.68 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:18:37 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,622|3312| 6 | |crypto.verify('RSA-SHA256')|6,902|3452| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:28:05 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,471,315|735838| 6 | |fromUnixToISOString(new Date())|2,075,442|1037952| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:30:43 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|342,333|171223| 6 | |NodeError|315,228|157615| 7 | |NodeError Range|281,306|140924| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:47:02 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.14.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_14_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|41,925,724|20968092| 6 | |Using Object.getOwnPropertyNames()|41,447,022|20728924| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:53:33 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|93,797,586|46898801| 6 | |~ (small)|92,996,611|46498326| 7 | |Math.floor (long)|87,576,357|43798421| 8 | |~ (long)|94,103,943|47055718| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:01:41 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v22.14.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v22/v22_14_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,005,086|503135| 6 | |Using ? operator to avoid rejection|1,065,957|533189| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:13:50 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,219,736|1609869| 6 | |Using replaceAll()|3,159,707|1580647| 7 | |Using replaceAll(//g)|2,972,112|1486346| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:36:06 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.14.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_14_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|280,780|140545| 6 | |Sort using first char|1,302,395|653362| 7 | |Sort using localeCompare|1,212,424|606248| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:46:28 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.14.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_14_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,894|948| 6 | |streams.web.Readable reading 1e3 * "some data"|1,689|845| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:56:13 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|10,293|5148| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,637|819| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:00:57 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|98,590,527|49309397| 6 | |Using backtick (`)|97,590,806|48795410| 7 | |Using array.join|9,871,301|4936090| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:06:49 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.14.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_14_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|92,101,335|46065683| 6 | |Using this|100,266,693|50133355| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:25:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_14_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|9,220,053|4610042| 6 | |Date.now()|20,641,140|10320603| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:29:34 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.14.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|273|137| 6 | |Array.from|24|13| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:10:02 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|134.17 ms|1| 6 | |Gzip|134.58 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:23:27 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,654|3328| 6 | |crypto.verify('RSA-SHA256')|6,695|3348| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:27:34 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,477,154|738752| 6 | |fromUnixToISOString(new Date())|2,016,000|1008081| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:29:54 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/date-string-coersion.md: -------------------------------------------------------------------------------- 1 | ## Date String coersion 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using String()|915,710|457908| 6 | |Using brackets {}|923,684|461843| 7 | |Using '' + |918,196|459099| 8 | |Using date.toString()|1,012,603|506303| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 18:37:52 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v22.15.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v22/v22_15_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|343,899|171955| 6 | |NodeError|309,742|154872| 7 | |NodeError Range|295,465|147807| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:45:59 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.15.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_15_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|41,301,475|20654337| 6 | |Using Object.getOwnPropertyNames()|40,705,413|20352934| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:53:48 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|95,977,581|47999647| 6 | |~ (small)|93,048,054|46524034| 7 | |Math.floor (long)|95,885,973|47943022| 8 | |~ (long)|98,061,358|49045476| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:03:35 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v22.15.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v22/v22_15_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,038,078|526252| 6 | |Using ? operator to avoid rejection|1,080,211|553107| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:14:21 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,326,611|1663653| 6 | |Using replaceAll()|3,169,245|1584623| 7 | |Using replaceAll(//g)|3,095,482|1547742| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:35:31 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.15.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_15_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|302,457|151229| 6 | |Sort using first char|1,308,774|656063| 7 | |Sort using localeCompare|1,221,379|610725| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:46:43 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.15.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_15_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,903|953| 6 | |streams.web.Readable reading 1e3 * "some data"|1,715|858| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:57:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|10,635|5318| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,606|811| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:01:14 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|92,039,234|46019624| 6 | |Using backtick (`)|91,205,506|45602814| 7 | |Using array.join|10,170,718|5085733| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:05:05 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v22.15.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v22/v22_15_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|95,552,801|47811424| 6 | |Using this|94,900,893|47450456| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:24:26 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v22/v22_15_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|10,602,016|5303642| 6 | |Date.now()|19,597,164|9798850| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:31:22 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v22.15.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelGSS/nodejs-bench-operations/92a1095e6e76659716c838fc628f7875d0f65e0f/v23/.gitkeep -------------------------------------------------------------------------------- /v23/v23_0_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|255|129| 6 | |Array.from|23|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:08:29 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|132.10 ms|1| 6 | |Gzip|134.94 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:22:22 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,828|3415| 6 | |crypto.verify('RSA-SHA256')|6,761|3381| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:27:49 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,315,157|657638| 6 | |fromUnixToISOString(new Date())|2,186,453|1093227| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:30:28 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|343,061|171535| 6 | |NodeError|309,311|154656| 7 | |NodeError Range|302,266|151134| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:46:47 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_0_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|41,432,992|20728470| 6 | |Using Object.getOwnPropertyNames()|42,818,757|21413240| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:54:50 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|94,413,040|47210856| 6 | |~ (small)|96,963,943|48481978| 7 | |Math.floor (long)|97,375,128|48687579| 8 | |~ (long)|89,281,159|44640603| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:03:02 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v23.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v23/v23_0_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,125,290|563548| 6 | |Using ? operator to avoid rejection|1,109,073|554537| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:14:57 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,268,531|1634623| 6 | |Using replaceAll()|3,062,151|1531076| 7 | |Using replaceAll(//g)|2,916,583|1458541| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:37:44 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_0_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|311,838|156301| 6 | |Sort using first char|1,332,923|666567| 7 | |Sort using localeCompare|1,216,345|608277| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:43:40 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_0_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,800|901| 6 | |streams.web.Readable reading 1e3 * "some data"|1,570|786| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:57:02 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|12,731|6366| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,624|815| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:00:22 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|90,793,478|45396744| 6 | |Using backtick (`)|92,357,019|46178528| 7 | |Using array.join|9,437,108|4720820| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:05:27 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_0_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|83,047,218|41523651| 6 | |Using this|88,386,389|44267490| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:26:53 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_0_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|11,871,635|5944668| 6 | |Date.now()|19,930,972|9967195| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:31:45 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|277|140| 6 | |Array.from|22|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:11:38 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|132.42 ms|1| 6 | |Gzip|134.71 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:24:00 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,889|3445| 6 | |crypto.verify('RSA-SHA256')|6,856|3429| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:26:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,460,971|731207| 6 | |fromUnixToISOString(new Date())|2,109,836|1055032| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:32:05 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|337,307|168654| 6 | |NodeError|308,918|154460| 7 | |NodeError Range|303,469|151852| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:48:07 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.10.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_10_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|36,643,266|18325566| 6 | |Using Object.getOwnPropertyNames()|42,078,416|21041518| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:54:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|97,247,483|48623775| 6 | |~ (small)|97,203,230|48602843| 7 | |Math.floor (long)|96,927,736|48512714| 8 | |~ (long)|86,126,048|43407537| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:02:45 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v23.10.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v23/v23_10_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|1,098,050|559311| 6 | |Using ? operator to avoid rejection|1,166,166|583085| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:12:49 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,247,023|1625837| 6 | |Using replaceAll()|3,144,533|1572703| 7 | |Using replaceAll(//g)|3,013,389|1506696| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:36:39 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.10.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_10_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|310,043|155088| 6 | |Sort using first char|1,343,081|671679| 7 | |Sort using localeCompare|1,221,287|610645| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:45:30 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.10.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_10_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,895|949| 6 | |streams.web.Readable reading 1e3 * "some data"|1,622|812| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:56:46 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|11,435|5718| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,585|796| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:01:56 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|88,752,834|44376429| 6 | |Using backtick (`)|81,274,681|40637546| 7 | |Using array.join|9,852,921|4926961| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:06:28 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.10.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_10_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|87,475,668|43750177| 6 | |Using this|94,356,723|47178386| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:23:58 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_10_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|11,509,874|5755496| 6 | |Date.now()|20,087,556|10048979| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:32:09 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.10.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|268|135| 6 | |Array.from|22|12| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:10:58 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|134.05 ms|1| 6 | |Gzip|134.66 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:22:54 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,656|3329| 6 | |crypto.verify('RSA-SHA256')|6,815|3408| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:26:32 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,521,808|760949| 6 | |fromUnixToISOString(new Date())|2,270,964|1135745| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:31:18 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|323,607|161804| 6 | |NodeError|305,815|152908| 7 | |NodeError Range|285,152|142577| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:46:30 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.11.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_11_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|39,610,692|19805970| 6 | |Using Object.getOwnPropertyNames()|41,000,226|20500114| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:55:23 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|94,403,228|47201631| 6 | |~ (small)|93,442,004|46748040| 7 | |Math.floor (long)|93,164,293|46750869| 8 | |~ (long)|96,692,113|48346096| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:02:14 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v23.11.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v23/v23_11_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|923,526|461764| 6 | |Using ? operator to avoid rejection|1,136,205|568627| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:13:19 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,223,137|1611907| 6 | |Using replaceAll()|3,184,549|1592511| 7 | |Using replaceAll(//g)|2,966,839|1483610| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:34:44 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.11.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_11_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|324,838|162430| 6 | |Sort using first char|1,335,532|667912| 7 | |Sort using localeCompare|1,211,511|605801| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:44:12 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.11.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_11_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,915|958| 6 | |streams.web.Readable reading 1e3 * "some data"|1,655|828| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:55:39 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|13,311|6661| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,701|851| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:59:53 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|95,506,583|47753336| 6 | |Using backtick (`)|96,131,646|48065830| 7 | |Using array.join|9,989,957|4994981| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:04:49 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v23.11.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v23/v23_11_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|87,080,522|43540267| 6 | |Using this|94,392,577|47196317| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:26:28 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v23/v23_11_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|12,497,852|6249747| 6 | |Date.now()|19,815,226|9907615| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:30:50 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v23.11.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/array-creation.md: -------------------------------------------------------------------------------- 1 | ## Array Creation 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Array|267|134| 6 | |Array.from|20|11| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:10:40 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/compression.md: -------------------------------------------------------------------------------- 1 | ## Compression algorithms 2 | 3 | |name|total time|samples| 4 | |-|-|-| 5 | |Deflate|137.65 ms|1| 6 | |Gzip|134.99 ms|1| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:17:30 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/crypto-verify.md: -------------------------------------------------------------------------------- 1 | ## Crypto Verify 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |crypto.createVerify('RSA-SHA256')|6,875|3438| 6 | |crypto.verify('RSA-SHA256')|6,913|3457| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:28:20 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/date-format-iso.md: -------------------------------------------------------------------------------- 1 | ## Date toISOString 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().toISOString()|1,534,858|767716| 6 | |fromUnixToISOString(new Date())|2,763,539|1383317| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:31:33 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/error.md: -------------------------------------------------------------------------------- 1 | ## Node.js Error 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Error|343,134|171568| 6 | |NodeError|310,840|155480| 7 | |NodeError Range|301,364|150739| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 18:47:51 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v24.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v24/v24_0_0/keys-vs-getownpropertynames.md: -------------------------------------------------------------------------------- 1 | ## Object.keys vs Object.getOwnPropertyNames comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using Object.keys()|44,408,454|22206915| 6 | |Using Object.getOwnPropertyNames()|46,743,003|23373138| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 18:54:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/math-floor-vs-tilde.md: -------------------------------------------------------------------------------- 1 | ## Math.floor vs ~ 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Math.floor (small)|94,610,979|47306749| 6 | |~ (small)|95,559,701|47780466| 7 | |Math.floor (long)|94,137,408|47068730| 8 | |~ (long)|95,351,899|47679515| 9 | 10 | 11 |
12 | Environment 13 | 14 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 15 | * __Run:__ Tue May 06 2025 19:00:27 GMT+0000 (Coordinated Universal Time) 16 | * __Node:__ `v24.0.0` 17 |
18 | 19 | 21 | -------------------------------------------------------------------------------- /v24/v24_0_0/possible-undefined-function.md: -------------------------------------------------------------------------------- 1 | ## Possible undefined Function 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using if to check function existence|885,778|444759| 6 | |Using ? operator to avoid rejection|1,208,364|618405| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:13:03 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/replace-vs-replaceall-comparison.md: -------------------------------------------------------------------------------- 1 | ## replace vs replaceAll comparison 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using replace(//g)|3,966,010|1983622| 6 | |Using replaceAll()|2,966,897|1483519| 7 | |Using replaceAll(//g)|3,308,505|1655296| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:38:00 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v24.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v24/v24_0_0/sort-map.md: -------------------------------------------------------------------------------- 1 | ## Sorting Map 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Sort using default|310,866|155434| 6 | |Sort using first char|1,283,726|642400| 7 | |Sort using localeCompare|1,190,054|595125| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 19:47:18 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v24.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v24/v24_0_0/stream-readable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Readable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Readable reading 1e3 * "some data"|1,825|913| 6 | |streams.web.Readable reading 1e3 * "some data"|1,635|818| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 19:58:11 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/stream-writable.md: -------------------------------------------------------------------------------- 1 | ## Stream.Writable 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |streams.Writable writing 1e3 * "some data"|9,451|4731| 6 | |streams.web.WritableStream writing 1e3 * "some data"|1,710|931| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:02:49 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/string-concat.md: -------------------------------------------------------------------------------- 1 | ## String concat 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using + sign|93,421,458|46722697| 6 | |Using backtick (`)|83,041,165|41552535| 7 | |Using array.join|10,182,391|5098347| 8 | 9 | 10 |
11 | Environment 12 | 13 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 14 | * __Run:__ Tue May 06 2025 20:05:51 GMT+0000 (Coordinated Universal Time) 15 | * __Node:__ `v24.0.0` 16 |
17 | 18 | 20 | -------------------------------------------------------------------------------- /v24/v24_0_0/super-vs-this.md: -------------------------------------------------------------------------------- 1 | ## Super vs This 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |Using super|90,149,312|45074670| 6 | |Using this|96,278,436|48194141| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:26:07 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | -------------------------------------------------------------------------------- /v24/v24_0_0/unix-time.md: -------------------------------------------------------------------------------- 1 | ## Getting unix time 2 | 3 | |name|ops/sec|samples| 4 | |-|-|-| 5 | |new Date().getTime()|12,477,996|6241962| 6 | |Date.now()|19,847,045|9934078| 7 | 8 | 9 |
10 | Environment 11 | 12 | * __Machine:__ linux x64 | 4 vCPUs | 7.6GB Mem 13 | * __Run:__ Tue May 06 2025 20:28:21 GMT+0000 (Coordinated Universal Time) 14 | * __Node:__ `v24.0.0` 15 |
16 | 17 | 19 | --------------------------------------------------------------------------------