Commit 0f571abe authored by Jeronimo Pellegrini's avatar Jeronimo Pellegrini

Include timings

parent 0d19d278
......@@ -45,5 +45,24 @@ and the compressed vectors with `:size 4`. Now, create three matrices, X Y and Z
(+ (get-2dmatrix Z i k) (* val-x val-y)))))
```
Some benchmarks (not to be taken too seriously -- just to help understand the performance difference between
representation scheemes and also between Common Lisp implementations).
```
SBCL GCL CCL64 Clisp ABCL ECL Allegro
-----------------------------------------------------------------------
ARRAY GET 0.02 0.14 1.34 0.76 0.97 x
ARRAY SET 0.08 0.26 2.88 1.37 0.27 x
CVECTOR GET 1.99 14.27 177.98 22.87 17.32 6.77
CVECTOR SET 2.04 14.45 175.47 24.53 19.10 5.49
TR-CVECTOR-GET 0.14 0.35 10.55 7.33 7.44 76.12
TR-CVECTOR-SET 0.19 0.33 17.59 7.89 7.57 75.68
HASH-GET 0.76 4.85 14.49 5.30 2.54 x
HASH-SET 2.01 6.32 13.09 6.15 1.78 x
TR-HASH-GET 0.04 5.97 8.11 4.74 2.19 x
TR-HASH-SET 1.85 7.07 7.92 5.43 2.41 x
```
* ACL Free Express has a heap limit and did not finish the benchmark.
* GNU GCL still dies during tests. WIP.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment