Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cache-performance.coffee « test « chroma-js « node_modules - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74005984fd259f195831472b41fc9a8f733773da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'es6-shim'
vows = require 'vows'
assert = require 'assert'
chroma = require '../chroma'



s = chroma.scale('RdYlGn')
    .mode('lab')
    .domain([0,100000], 10)

t0 = new Date().getTime()

for i in [1..100000]
    s(i).hex()

t1 = new Date().getTime()

console.log (t1 - t0) + "ms"