Skip to content

Commit c67937b

Browse files
committed
feat: julia benchmark updated
1 parent 89640dc commit c67937b

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/julia

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/julia/benchmark.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
2020
using Printf
2121

2222
# Benchmark variables:
23-
name = "inv";
23+
name = "invf";
2424
repeats = 3;
2525

2626
"""
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function 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;

0 commit comments

Comments
 (0)