We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf613e3 commit 9ecae26Copy full SHA for 9ecae26
1 file changed
demo/playground.js
@@ -366,7 +366,7 @@ $(function() {
366
"function kernel(A,B) {\n"+
367
" var sum = 0;\n"+
368
" for (var i=0; i<512; i++) {\n"+
369
- " sum = (sum*A[this.thread.x] + i)/B[this.thread.x];\n"+
+ " sum = Math.pow((A[this.thread.x]-sum)/B[this.thread.x],2);\n"+
370
" }\n"+
371
" return sum;\n"+
372
"}";
@@ -563,9 +563,9 @@ $(function() {
563
if( cpu_time == gpu_time ) {
564
gain_per = 0;
565
} else if( gpu_time < cpu_time ) {
566
- gain_per = cpu_time / gpu_time * 100.0;
+ gain_per = cpu_time / gpu_time * 100.0 - 100.0;
567
} else {
568
- gain_per = -(gpu_time / cpu_time * 100.0);
+ gain_per = -(gpu_time / cpu_time * 100.0) + 100.0;
569
}
570
571
bench_labels.push( sampleSize );
0 commit comments