Skip to content

Commit 1acdbf7

Browse files
authored
Update benchmarks.md
1 parent 4a50b89 commit 1acdbf7

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

docs/src/benchmarks.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Run `perf/runbenchmarks.jl` to see benchmark results for the Atlas robot (v5). R
1515
> **Note**
1616
> Results on CI builds are **not at all** representative because of code coverage.
1717
18-
Here are the results on an Apple MacBook Air (M1, 2020) (8GB RAM, 512GB SSD) at commit [b9ef1d](https://github.com/JuliaRobotics/RigidBodyDynamics.jl/commit/b9ef1d6974beff4d4fbe7dffc6dbfa65f71e0132):
18+
Below are the results for **RBD.jl 2.3.2** (commit [`b9ef1d`](https://github.com/JuliaRobotics/RigidBodyDynamics.jl/commit/b9ef1d6974beff4d4fbe7dffc6dbfa65f71e0132)) using **Julia 1.8.5** on an **Apple MacBook Air (M1, 2020)** (8GB RAM, 512GB SSD):
1919

2020
Output of `versioninfo()`:
2121
```
@@ -39,54 +39,34 @@ BenchmarkTools.Trial: 10000 samples with 10 evaluations.
3939
Range (min … max): 3.796 μs … 6.183 μs ┊ GC (min … max): 0.00% … 0.00%
4040
Time (median): 3.858 μs ┊ GC (median): 0.00%
4141
Time (mean ± σ): 3.879 μs ± 93.310 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
42-
43-
▁▄▄▆▆██▇█▆▇▄▅▄▂▃▁▃▂▃▃▁▃▁▂ ▁ ▂
44-
▅█████████████████████████████▇█▇█▇▆▇▅▆▅▆▅▅▆▅▆▄▇▆█▇▅▆▆▇▅▄▄ █
45-
3.8 μs Histogram: log(frequency) by time 4.18 μs <
46-
4742
Memory estimate: 0 bytes, allocs estimate: 0.
4843
```
4944

5045
Mass matrix ([`mass_matrix!`](@ref)) and Jacobian ([`geometric_jacobian!`](@ref)) from left hand to right foot:
51-
```julia
46+
```
5247
BenchmarkTools.Trial: 10000 samples with 10 evaluations.
5348
Range (min … max): 4.042 μs … 6.763 μs ┊ GC (min … max): 0.00% … 0.00%
5449
Time (median): 4.167 μs ┊ GC (median): 0.00%
5550
Time (mean ± σ): 4.187 μs ± 115.303 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
56-
57-
▁▁▂▁▁ ▁▃▄▆▇██▇█▇▆▄▃▃▃▃▁▃▃▃▂▂▁▁ ▃
58-
▃▅███████████████████████████████▇██▇██▆▇▆▄▆▅▆▇▇██▆██▆▆▅▁▅▄ █
59-
4.04 μs Histogram: log(frequency) by time 4.5 μs <
60-
6151
Memory estimate: 0 bytes, allocs estimate: 0.
6252
```
6353

6454
Note the low additional cost of computing a Jacobian when the mass matrix is already computed. This is because RigidBodyDynamics.jl caches intermediate computation results.
6555

6656
Inverse dynamics ([`inverse_dynamics!`](@ref)):
67-
```julia
57+
```
6858
BenchmarkTools.Trial: 10000 samples with 10 evaluations.
6959
Range (min … max): 2.700 μs … 5.700 μs ┊ GC (min … max): 0.00% … 0.00%
7060
Time (median): 2.767 μs ┊ GC (median): 0.00%
7161
Time (mean ± σ): 2.773 μs ± 79.491 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
72-
73-
▁▁█
74-
▂▂▂▂▂▂▃▅▅▆▇█████▇▆▅▄▃▄▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▁▂▂▁▂▂▂▁▂▂▂▂ ▃
75-
2.7 μs Histogram: frequency by time 2.98 μs <
76-
7762
Memory estimate: 0 bytes, allocs estimate: 0.
7863
```
7964

8065
Forward dynamics ([`dynamics!`](@ref)):
81-
```julia
66+
```
8267
BenchmarkTools.Trial: 10000 samples with 10 evaluations.
8368
Range (min … max): 10.554 μs … 23.692 μs ┊ GC (min … max): 0.00% … 0.00%
8469
Time (median): 10.667 μs ┊ GC (median): 0.00%
8570
Time (mean ± σ): 10.703 μs ± 212.557 ns ┊ GC (mean ± σ): 0.00% ± 0.00%
86-
87-
▃▇█▇▅▂
88-
▁▁▂▂▄███████▇▄▃▂▂▂▁▁▁▁▁▁▁▁▁▁▂▂▂▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ ▂
89-
10.6 μs Histogram: frequency by time 11.3 μs <
90-
9171
Memory estimate: 0 bytes, allocs estimate: 0.
9272
```

0 commit comments

Comments
 (0)