File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/julia Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22#
33# @license Apache-2.0
44#
5- # Copyright (c) 2018 The Stdlib Authors.
5+ # Copyright (c) 2024 The Stdlib Authors.
66#
77# Licensed under the Apache License, Version 2.0 (the "License");
88# you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import BenchmarkTools
2020using Printf
2121
2222# Benchmark variables:
23- name = " inv " ;
23+ name = " invf " ;
2424repeats = 3 ;
2525
2626"""
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107```
108108"""
109109function benchmark ()
110- t = BenchmarkTools . @benchmark inv ( ComplexF64 ( ( rand () * 1000.0 ) - 500.0 , ( rand () * 1000.0 ) - 500.0 )) samples= 1e6
110+ t = @benchmark invf ( ComplexF32 ( rand (Float32) * 1000.0f0 - 500.0f0 , rand (Float32) * 1000.0f0 - 500.0f0 )) samples= 1e6
111111
112112 # Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113 s = sum ( t. times ) / 1.0e9 ;
You can’t perform that action at this time.
0 commit comments