Skip to content

Commit

Permalink
fix substr
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Apr 30, 2021
1 parent b1a033a commit 7bd2e41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/perf-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
control-serve-command: yarn workspace relationship-performance-test-app ember s --path dist-control
control-url: 'http://localhost:4200/materialization'
markers: 'start-find-all,start-outer-materialization,stop-outer-materialization,end-find-all'
fidelity: high
fidelity: low
upload-traces: true
upload-results: true
- name: Report TracerBench Results
Expand Down
2 changes: 1 addition & 1 deletion bin/perf-tracking/create-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const GITHUB_SHA = process.argv[2];

const analysisPath = path.resolve(__dirname, '../../tracerbench-results/analysis-output.txt');
let analysisText = fs.readFileSync(analysisPath);
let analysisText = fs.readFileSync(analysisPath, 'utf-8');
let lines = analysisText.substr(analysisText.indexOf('Benchmark Results Summary')).split('\n');

lines = lines.filter((l) => l.indexOf('Phase') !== -1 || l.indexOf('phase') !== -1);
Expand Down

0 comments on commit 7bd2e41

Please sign in to comment.