time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

data.js (1773B)


      1 /**
      2 * @license Apache-2.0
      3 *
      4 * Copyright (c) 2020 The Stdlib Authors.
      5 *
      6 * Licensed under the Apache License, Version 2.0 (the "License");
      7 * you may not use this file except in compliance with the License.
      8 * You may obtain a copy of the License at
      9 *
     10 *    http://www.apache.org/licenses/LICENSE-2.0
     11 *
     12 * Unless required by applicable law or agreed to in writing, software
     13 * distributed under the License is distributed on an "AS IS" BASIS,
     14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 * See the License for the specific language governing permissions and
     16 * limitations under the License.
     17 */
     18 
     19 /* eslint-disable stdlib/capitalized-comments */
     20 
     21 'use strict';
     22 
     23 // MODULES //
     24 
     25 var ramp = require( './../../../../base/special/ramp' );
     26 var rampf = require( './../../../../base/special/rampf' );
     27 var identity = require( './../../../../base/special/identity' );
     28 
     29 
     30 // MAIN //
     31 
     32 var data = [
     33 	// NOTE: the following **must** match the order in `./types.json`. The order should be according to likelihood of use (e.g., if `float64` arrays are more likely, then `float64` types/data should come before `uint8`).
     34 
     35 	// float64
     36 	ramp,
     37 	ramp,
     38 
     39 	// float32
     40 	rampf,
     41 	rampf,
     42 	rampf,
     43 
     44 	// generic
     45 	ramp,
     46 
     47 	// int32
     48 	ramp,
     49 	ramp,
     50 	ramp,
     51 	ramp,
     52 
     53 	// int16
     54 	ramp,
     55 	ramp,
     56 	ramp,
     57 	ramp,
     58 	ramp,
     59 	ramp,
     60 	ramp,
     61 
     62 	// int8
     63 	ramp,
     64 	ramp,
     65 	ramp,
     66 	ramp,
     67 	ramp,
     68 	ramp,
     69 	ramp,
     70 	ramp,
     71 	ramp,
     72 	ramp,
     73 
     74 	// uint32
     75 	identity,
     76 	identity,
     77 	identity,
     78 
     79 	// uint16
     80 	identity,
     81 	identity,
     82 	identity,
     83 	identity,
     84 	identity,
     85 	identity,
     86 
     87 	// uint8
     88 	identity,
     89 	identity,
     90 	identity,
     91 	identity,
     92 	identity,
     93 	identity,
     94 	identity,
     95 	identity,
     96 	identity,
     97 
     98 	// uint8c
     99 	identity,
    100 	identity,
    101 	identity,
    102 	identity,
    103 	identity,
    104 	identity,
    105 	identity,
    106 	identity,
    107 	identity
    108 ];
    109 
    110 
    111 // EXPORTS //
    112 
    113 module.exports = data;