[misc] bump the dev-env to 3.3.2
This commit is contained in:
@@ -17,7 +17,7 @@ const _ = require('lodash')
|
||||
const concurentCompiles = 5
|
||||
const totalCompiles = 50
|
||||
|
||||
const buildUrl = path =>
|
||||
const buildUrl = (path) =>
|
||||
`http://${Settings.internal.clsi.host}:${Settings.internal.clsi.port}/${path}`
|
||||
|
||||
const mainTexContent = fs.readFileSync('./bulk.tex', 'utf-8')
|
||||
@@ -25,12 +25,12 @@ const mainTexContent = fs.readFileSync('./bulk.tex', 'utf-8')
|
||||
const compileTimes = []
|
||||
let failedCount = 0
|
||||
|
||||
const getAverageCompileTime = function() {
|
||||
const getAverageCompileTime = function () {
|
||||
const totalTime = _.reduce(compileTimes, (sum, time) => sum + time, 0)
|
||||
return totalTime / compileTimes.length
|
||||
}
|
||||
|
||||
const makeRequest = function(compileNumber, callback) {
|
||||
const makeRequest = function (compileNumber, callback) {
|
||||
let bulkBodyCount = 7
|
||||
let bodyContent = ''
|
||||
while (--bulkBodyCount) {
|
||||
@@ -74,12 +74,12 @@ ${bodyContent}
|
||||
)
|
||||
}
|
||||
|
||||
const jobs = _.map(__range__(1, totalCompiles, true), i => cb =>
|
||||
const jobs = _.map(__range__(1, totalCompiles, true), (i) => (cb) =>
|
||||
makeRequest(i, cb)
|
||||
)
|
||||
|
||||
const startTime = new Date()
|
||||
async.parallelLimit(jobs, concurentCompiles, err => {
|
||||
async.parallelLimit(jobs, concurentCompiles, (err) => {
|
||||
if (err != null) {
|
||||
console.error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user