1.0.4 • Published 10 years ago

benchmark.gl-benchmarks v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

benchmark.gl-benchmarks

profiles and tests gpu performance

uses benchmark.js and stack.gl

Installation

npm install benchmark.gl-benchmarks

Usage

var benchmarks = require("benchmark.gl-benchmarks");

benchmarks.run(function(res){
	//called after each benchmark test completes
});

Output Example

{
  "completedBenchmarks": 1,
  "remainingBenchmarks": 0,
  "gpu": {
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36",
    "webglVersion": 1,
    "contextName": "experimental-webgl",
    "glVersion": "WebGL 1.0 (OpenGL ES 2.0 Chromium)",
    "shadingLanguageVersion": "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)",
    "vendor": "WebKit",
    "renderer": "WebKit WebGL",
    "unMaskedVendor": "Intel Inc.",
    "unMaskedRenderer": "Intel(R) Iris(TM) Graphics 6100",
    "antialias": "Available",
    "angle": "No",
    "majorPerformanceCaveat": "No",
    "maxColorBuffers": 8,
    "redBits": 8,
    "greenBits": 8,
    "blueBits": 8,
    "alphaBits": 8,
    "depthBits": 24,
    "stencilBits": 8,
    "maxRenderBufferSize": 16384,
    "maxCombinedTextureImageUnits": 16,
    "maxCubeMapTextureSize": 16384,
    "maxFragmentUniformVectors": 1024,
    "maxTextureImageUnits": 16,
    "maxTextureSize": 16384,
    "maxVaryingVectors": 15,
    "maxVertexAttributes": 16,
    "maxVertexTextureImageUnits": 16,
    "maxVertexUniformVectors": 1024,
    "aliasedLineWidthRange": [
      1,
      7
    ],
    "aliasedPointSizeRange": [
      1,
      255
    ],
    "maxViewportDimensions": [
      16384,
      16384
    ],
    "maxAnisotropy": 16,
    "vertexShaderBestPrecision": {
      "high": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
      "medium": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
      "low": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
      "best": "[-2^127, 2^127] (23)"
    },
    "fragmentShaderBestPrecision": {
      "high": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
      "medium": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
      "low": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
      "best": "[-2^127, 2^127] (23)"
    },
    "fragmentShaderFloatIntPrecision": "highp/highp",
    "extensions": [
      "ANGLE_instanced_arrays",
      "EXT_blend_minmax",
      "EXT_disjoint_timer_query",
      "EXT_frag_depth",
      "EXT_shader_texture_lod",
      "EXT_sRGB",
      "EXT_texture_filter_anisotropic",
      "WEBKIT_EXT_texture_filter_anisotropic",
      "OES_element_index_uint",
      "OES_standard_derivatives",
      "OES_texture_float",
      "OES_texture_float_linear",
      "OES_texture_half_float",
      "OES_texture_half_float_linear",
      "OES_vertex_array_object",
      "WEBGL_compressed_texture_s3tc",
      "WEBKIT_WEBGL_compressed_texture_s3tc",
      "WEBGL_debug_renderer_info",
      "WEBGL_debug_shaders",
      "WEBGL_depth_texture",
      "WEBKIT_WEBGL_depth_texture",
      "WEBGL_draw_buffers",
      "WEBGL_lose_context",
      "WEBKIT_WEBGL_lose_context"
    ]
  },
  "benchmarks": [
    {
      "name": "shader",
      "options": {
        "async": false,
        "defer": false,
        "delay": 0.005,
        "initCount": 1,
        "maxTime": 2,
        "minSamples": 5,
        "minTime": 0.075
      },
      "async": false,
      "defer": false,
      "delay": 0.005,
      "initCount": 1,
      "maxTime": 2,
      "minSamples": 5,
      "minTime": 0.075,
      "id": 1,
      "stats": {
        "moe": 0.0008160582473764424,
        "rme": 4.486184082435939,
        "sem": 0.0003912072135074029,
        "deviation": 0.0017927366683104246,
        "mean": 0.018190476190476194,
        "sample": [
          0.0184,
          0.017599999999999998,
          0.0186,
          0.022600000000000002,
          0.022,
          0.0196,
          0.019,
          0.0158,
          0.0166,
          0.0184,
          0.016800000000000002,
          0.0182,
          0.017599999999999998,
          0.0164,
          0.0194,
          0.0166,
          0.0198,
          0.0164,
          0.0182,
          0.0164,
          0.017599999999999998
        ],
        "variance": 0.0000032139047619047613
      },
      "times": {
        "cycle": 0.09095238095238098,
        "elapsed": 2.858,
        "period": 0.018190476190476194,
        "timeStamp": 1470857076591
      },
      "running": false,
      "count": 5,
      "cycles": 3,
      "hz": 54.97382198952879
    }
  ],
  "platform": {
    "description": "Chrome 52.0.2743.116 on OS X 10.11.6",
    "layout": "Blink",
    "manufacturer": null,
    "name": "Chrome",
    "prerelease": null,
    "product": null,
    "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36",
    "version": "52.0.2743.116",
    "os": {
      "architecture": 32,
      "family": "OS X",
      "version": "10.11.6"
    }
  }
}

Testing

npm run test

Badges

npm.io npm.io

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago