@@ -47,31 +47,22 @@ modern hardware**. As the program itself is very short-running, the overhead of
4747setting up and tearing down a whole Python VM could be overwhelming,
4848especially on less capable hardware. With ` autojump-rs ` this latency is
4949greatly reduced. Typical running time is like this on the author's Core
50- i7-2670QM laptop, with a directory database of 256 entries:
50+ i7-2670QM laptop, with a directory database of 1014 entries:
5151
5252```
5353$ time ./autojump/bin/autojump au
5454/home/xenon/src/autojump-rs
55- ./autojump/bin/autojump au 0.05s user 0.02s system 96 % cpu 0.080 total
55+ ./autojump/bin/autojump au 0.09s user 0.01s system 99 % cpu 0.103 total
5656
5757$ time ./autojump-rs/target/release/autojump au
5858/home/xenon/src/autojump-rs
59- ./autojump-rs/target/release/autojump au 0.02s user 0.00s system 94 % cpu 0.020 total
59+ ./autojump-rs/target/release/autojump au 0.00s user 0.00s system 87 % cpu 0.007 total
6060```
6161
6262The time savings are more pronounced on less powerful hardware, where every
63- cycle shaved off counts. On a Loongson 3A2000 box running at 1.0 GHz the
64- timings are like this, with a database of the same size:
65-
66- ```
67- $ time ./autojump/bin/autojump au
68- /opt/store/src/autojump-rs
69- ./autojump/bin/autojump au 0.15s user 0.02s system 97% cpu 0.178 total
70-
71- $ time ./autojump-rs/target/release/autojump au
72- /opt/store/src/autojump-rs
73- ./autojump-rs/target/release/autojump au 0.04s user 0.01s system 96% cpu 0.051 total
74- ```
63+ cycle shaved off counts. The running time on a 1.4GHz Loongson 3A3000 is
64+ about 10ms, for example, which is very close to the x86 figures despite the
65+ clock frequency difference.
7566
7667And, of course, the program no longer interacts with Python in any way, so the
7768virtualenv-related crashes are no more. Say goodbye to the dreaded
0 commit comments