blob: cb68b914332fc2cbf27f70ce98a50f210f9f10f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
[eelco@tyros:~/Dev/nix/table]$ time ./a.out
testing...
SET: 3000000 3400626 1.13354 10
GET: 10000000 13034450 1.30344
real 0m1.981s
user 0m1.972s
sys 0m0.008s
# Floating point -> fixed point
[eelco@tyros:~/Dev/nix/table]$ time ./a.out
testing...
SET: 3000000 3400506 1.1335 9
GET: 10000000 13032311 1.30323
real 0m0.956s
user 0m0.928s
sys 0m0.024s
[eelco@tyros:~/Dev/nix/table]$ time ./a.out
testing...
RESIZES: 0
SET: 30000000 35420570 1.18069
GET: 40000000 49507966 1.2377
real 0m3.796s
user 0m3.700s
sys 0m0.016s
|