Skip to content

Commit

Permalink
Add links to run individual benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 24, 2017
1 parent c43c2fc commit 6daed99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bench/benchmarks_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const BenchmarksView = React.createClass({

renderBenchmark: function(name) {
return <tr key={name}>
<th>{name}</th>
<th><a href={`#${name}`} onClick={this.reload}>{name}</a></th>
{Object.keys(this.state.results[name]).map(this.renderBenchmarkVersion.bind(this, name))}
</tr>;
},
Expand Down Expand Up @@ -179,6 +179,10 @@ const BenchmarksView = React.createClass({
return reduceStatuses(Object.keys(this.state.results).map(function(name) {
return this.getBenchmarkStatus(name);
}, this));
},

reload() {
location.reload();
}
});

Expand Down

0 comments on commit 6daed99

Please sign in to comment.