Download node_modules/chroma-js/test/cache-performance.coffee from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/chroma-js/test/cache-performance.coffee
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/chroma-js/test/cache-performance.coffee
-
curl -L -o cache-performance.coffee https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/chroma-js/test/cache-performance.coffee
292 Bytes
| 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" | |