Skip to content

Commit 0f129dd

Browse files
committed
Update Julia scripts
1 parent 23c87a0 commit 0f129dd

File tree

20 files changed

+20
-20
lines changed

20 files changed

+20
-20
lines changed

lib/node_modules/@stdlib/complex/conj/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark conj( Complex128( rand(), rand() ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark conj( ComplexF64( rand(), rand() ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/complex/float64/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark Complex128( rand(), rand() ) samples=1e6
110+
t = BenchmarkTools.@benchmark ComplexF64( rand(), rand() ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/complex/imag/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark imag( Complex128( rand(), rand() ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark imag( ComplexF64( rand(), rand() ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/complex/real/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark real( Complex128( rand(), rand() ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark real( ComplexF64( rand(), rand() ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/complex/reim/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark reim( Complex128( rand(), rand() ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark reim( ComplexF64( rand(), rand() ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/abs/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark abs( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark abs( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/abs2/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark abs2( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark abs2( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/add/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) + Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
110+
t = BenchmarkTools.@benchmark ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) + ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/cis/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark cis(Complex128( (rand()*100.0)-50.0, (rand()*100.0)-50.0 )) samples=1e6
110+
t = BenchmarkTools.@benchmark cis(ComplexF64( (rand()*100.0)-50.0, (rand()*100.0)-50.0 )) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/divide/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) / Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
110+
t = BenchmarkTools.@benchmark ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) / ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/exp/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark exp(Complex128( (rand()*100.0)-50.0, (rand()*100.0)-50.0 )) samples=1e6
110+
t = BenchmarkTools.@benchmark exp(ComplexF64( (rand()*100.0)-50.0, (rand()*100.0)-50.0 )) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/flipsign/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark flipsign( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ), (rand()*1000.0) - 500.0 ) samples=1e6
110+
t = BenchmarkTools.@benchmark flipsign( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ), (rand()*1000.0) - 500.0 ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/inv/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark inv(Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 )) samples=1e6
110+
t = BenchmarkTools.@benchmark inv(ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 )) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/multiply/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) * Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
110+
t = BenchmarkTools.@benchmark ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) * ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/negate/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark -( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark -( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/phase/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark angle( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark angle( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/round/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark round( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark round( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/roundn/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark round( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ), -2 ) samples=1e6
110+
t = BenchmarkTools.@benchmark round( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ), -2 ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/signum/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark sign( Complex128( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
110+
t = BenchmarkTools.@benchmark sign( ComplexF64( (rand()*1000.0) - 500.0, (rand()*1000.0) - 500.0 ) ) samples=1e6
111111

112112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
113113
s = sum( t.times ) / 1.0e9;

lib/node_modules/@stdlib/math/base/complex/subtract/benchmark/julia/benchmark.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ julia> out = benchmark();
107107
```
108108
"""
109109
function benchmark()
110-
t = BenchmarkTools.@benchmark Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) - Complex128( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) samples=1e6
110+
t = BenchmarkTools.@benchmark ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) - ComplexF64( (rand()*1000.0)-500.0, (rand()*1000.0)-500.0 ) 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)