diff --git a/find-regressions.sh b/find-regressions.sh index 34ee5a99..067c88bf 100755 --- a/find-regressions.sh +++ b/find-regressions.sh @@ -21,14 +21,16 @@ cd find-regressions/current elm make --optimize ../src/ParseMain.elm --output elm.js > /dev/null -sed -i 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' elm.js -sed -i 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' elm.js +sed -e 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' \ + -e 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' \ + -i elm.js cd ../.. cd find-regressions/published elm make --optimize ../src/ParseMain.elm --output elm.js > /dev/null -sed -i 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' elm.js -sed -i 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' elm.js +sed -e 's/$author$project$ParseMain$timeStart(version)/globalThis.performance.now()/' \ + -e 's/$author$project$ParseMain$timeEnd(version)/globalThis.measurements[version].push(globalThis.performance.now() - start)/' \ + -i elm.js cd ../.. node find-regressions $@ \ No newline at end of file