Skip to content

Commit 9799f77

Browse files
committed
bench: minor clean-up
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent c709856 commit 9799f77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/number/float16/ctor/benchmark

lib/node_modules/@stdlib/number/float16/ctor/benchmark/benchmark.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ bench( pkg, function benchmark( b ) {
3636

3737
b.tic();
3838
for ( i = 0; i < b.iterations; i++ ) {
39-
z = new Float16( i, i );
39+
z = new Float16( i );
4040
if ( isnan( z ) ) {
4141
b.fail( 'should not return NaN' );
4242
}
4343
}
4444
b.toc();
4545
if ( !( z instanceof Float16 ) ) {
46-
b.fail( 'should return a complex number' );
46+
b.fail( 'should return a Float16 instance' );
4747
}
4848
b.pass( 'benchmark finished' );
4949
b.end();
@@ -71,7 +71,7 @@ bench( format( '%s::get:value', pkg ), function benchmark( b ) {
7171
b.end();
7272
});
7373

74-
bench( format( '%s:toString', pkg ), function benchmark( b ) {
74+
bench( format( '%s::toString', pkg ), function benchmark( b ) {
7575
var o;
7676
var z;
7777
var i;
@@ -93,7 +93,7 @@ bench( format( '%s:toString', pkg ), function benchmark( b ) {
9393
b.end();
9494
});
9595

96-
bench( format( '%s:toJSON', pkg ), function benchmark( b ) {
96+
bench( format( '%s::toJSON', pkg ), function benchmark( b ) {
9797
var o;
9898
var z;
9999
var i;

0 commit comments

Comments
 (0)