Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(969)

Side by Side Diff: polymer_0.5.0/bower_components/gif.js/src/benchmark.coffee

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {NeuQuant} = require './TypedNeuQuant.js' 1 {NeuQuant} = require './TypedNeuQuant.js'
2 2
3 ### 3 ###
4 typed 100 runs: 4 typed 100 runs:
5 run finished at q1 5 run finished at q1
6 avg: 661.46ms median: 660.54ms 6 avg: 661.46ms median: 660.54ms
7 run finished at q10 7 run finished at q10
8 avg: 67.49ms median: 67.03ms 8 avg: 67.49ms median: 67.03ms
9 run finished at q20 9 run finished at q20
10 avg: 34.56ms median: 34.19ms 10 avg: 34.56ms median: 34.19ms
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 ctx.putImageData imdata, 0, 0 83 ctx.putImageData imdata, 0, 0
84 84
85 for i in [0...map.length] by 3 85 for i in [0...map.length] by 3
86 color = [map[i], map[i + 1], map[i + 2]] 86 color = [map[i], map[i + 1], map[i + 2]]
87 el = document.createElement 'span' 87 el = document.createElement 'span'
88 el.style.display = 'inline-block' 88 el.style.display = 'inline-block'
89 el.style.height = '1em' 89 el.style.height = '1em'
90 el.style.width = '1em' 90 el.style.width = '1em'
91 el.style.background = 'rgb(' + color.join(',') + ')' 91 el.style.background = 'rgb(' + color.join(',') + ')'
92 document.body.appendChild el 92 document.body.appendChild el
OLDNEW
« no previous file with comments | « polymer_0.5.0/bower_components/gif.js/src/TypedNeuQuant.js ('k') | polymer_0.5.0/bower_components/gif.js/src/browser.coffee » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698