- Replaced broken .NET backend with Node.js/Express - Restored original website design with purple gradient hero - Updated homepage and shop pages with Bootstrap 5 responsive design - Disabled GitHub remote sync - all code now stored locally only - Created backup scripts and documentation - All changes saved on Ubuntu server at /var/www/SkyArtShop
28 lines
472 B
JavaScript
28 lines
472 B
JavaScript
'use strict'
|
|
|
|
const split = require('./')
|
|
const bench = require('fastbench')
|
|
const binarySplit = require('binary-split')
|
|
const fs = require('fs')
|
|
|
|
function benchSplit (cb) {
|
|
fs.createReadStream('package.json')
|
|
.pipe(split())
|
|
.on('end', cb)
|
|
.resume()
|
|
}
|
|
|
|
function benchBinarySplit (cb) {
|
|
fs.createReadStream('package.json')
|
|
.pipe(binarySplit())
|
|
.on('end', cb)
|
|
.resume()
|
|
}
|
|
|
|
const run = bench([
|
|
benchSplit,
|
|
benchBinarySplit
|
|
], 10000)
|
|
|
|
run(run)
|