-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bench.js.map
1 lines (1 loc) · 1.4 KB
/
bench.js.map
1
{"version":3,"sources":["@stdlib/bench/lib/index.js"],"names":["bench","__var_0__"],"mappings":"kCAgDG,IAACA,EAAQC","sourcesContent":["import __var_0__ from '@stdlib/bench/harness';\n/**\n\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Benchmark harness.\n*\n* @module @stdlib/bench\n*\n* @example\n* var bench = require( '@stdlib/bench' );\n*\n* bench( 'beep', function benchmark( b ) {\n* var x;\n* var i;\n* b.tic();\n* for ( i = 0; i < b.iterations; i++ ) {\n* x = Math.sin( Math.random() );\n* if ( x !== x ) {\n* b.ok( false, 'should not return NaN' );\n* }\n* }\n* b.toc();\n* if ( x !== x ) {\n* b.ok( false, 'should not return NaN' );\n* }\n* b.end();\n* });\n*/\n\n// MODULES //\nvar bench = __var_0__;\n\n\n// EXPORTS //\nexport default bench;\n"]}