OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 20 10 463 22 22 23.46 1.13
bin-true no-host 671 548 2,299 812 805 3.43 1.21
configure.cpython no-host 15,090 15,153 29,017 15,292 15,451 1.92 1.01
configure.ocaml no-host 3,857 3,763 4,679 3,835 3,846 1.21 0.99
configure.tcc no-host 49 42 204 50 49 4.20 1.03
configure.util-linux no-host 14,069 14,925 31,610 14,412 14,475 2.25 1.02
configure.yash no-host 1,833 1,770 2,514 1,835 1,829 1.37 1.00
hello-world no-host 2 1 57 3 3 38.04 2.02

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,553 1,105 23,745 3,175 3,109 9.30 1.24
bin-true no-host 106,349 66,442 771,707 126,340 124,227 7.26 1.19
configure.cpython no-host 2,221,645 2,242,434 6,212,940 2,219,704 2,201,398 2.80 1.00
configure.ocaml no-host 410,435 390,493 647,197 412,536 412,509 1.58 1.01
configure.tcc no-host 6,537 5,478 24,012 6,957 6,902 3.67 1.06
configure.util-linux no-host 2,111,220 2,257,369 5,372,170 1,990,948 1,990,157 2.54 0.94
configure.yash no-host 256,902 244,593 388,400 257,973 256,710 1.51 1.00
hello-world no-host 153 82 3,938 343 338 25.74 2.24

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.3 22.7 8.8 8.7 5.09 1.97
bin-true no-host 2.9 1.4 18.2 8.3 7.5 6.32 2.86
configure.cpython no-host 27.3 27.5 27.5 27.4 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.2 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.3 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,292 1 66 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,412 3 63 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,835 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,835 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 805 1 2 2.6 7.5 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,451 1 64 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,475 3 64 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,846 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,829 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 20 12 8 4.5 bash
15 no-host abuild-print-help 10 5 5 3.3 dash
23 no-host abuild-print-help 463 418 48 22.7 osh-cpython
31 no-host abuild-print-help 22 21 2 8.8 osh-native
39 no-host abuild-print-help 22 19 4 8.7 osh-native-souffle
1 no-host bin-true 671 492 212 2.9 bash
9 no-host bin-true 548 431 126 1.4 dash
17 no-host bin-true 2,299 1,442 1,117 18.2 osh-cpython
25 no-host bin-true 812 571 254 8.3 osh-native
33 no-host bin-true 805 567 254 7.5 osh-native-souffle
2 no-host configure.cpython 15,090 9,041 6,449 27.3 bash
10 no-host configure.cpython 15,153 9,127 6,444 27.5 dash
18 no-host configure.cpython 29,017 17,841 13,052 27.5 osh-cpython
26 no-host configure.cpython 15,292 9,050 6,507 27.4 osh-native
34 no-host configure.cpython 15,451 8,882 6,692 27.4 osh-native-souffle
4 no-host configure.ocaml 3,857 1,745 1,146 20.6 bash
12 no-host configure.ocaml 3,763 1,618 1,164 20.6 dash
20 no-host configure.ocaml 4,679 2,227 1,663 20.6 osh-cpython
28 no-host configure.ocaml 3,835 1,601 1,268 20.6 osh-native
36 no-host configure.ocaml 3,846 1,648 1,234 20.6 osh-native-souffle
5 no-host configure.tcc 49 15 35 19.4 bash
13 no-host configure.tcc 42 31 11 19.1 dash
21 no-host configure.tcc 204 135 72 19.3 osh-cpython
29 no-host configure.tcc 50 26 24 19.3 osh-native
37 no-host configure.tcc 49 20 29 19.3 osh-native-souffle
3 no-host configure.util-linux 14,069 8,826 5,726 30.3 bash
11 no-host configure.util-linux 14,925 9,170 6,257 30.3 dash
19 no-host configure.util-linux 31,610 21,168 11,547 30.1 osh-cpython
27 no-host configure.util-linux 14,412 8,598 6,007 30.1 osh-native
35 no-host configure.util-linux 14,475 8,678 5,997 30.1 osh-native-souffle
6 no-host configure.yash 1,833 1,067 775 24.5 bash
14 no-host configure.yash 1,770 1,021 753 24.2 dash
22 no-host configure.yash 2,514 1,569 986 24.4 osh-cpython
30 no-host configure.yash 1,835 1,049 789 24.2 osh-native
38 no-host configure.yash 1,829 1,038 794 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 44 13 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,553 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,745 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,175 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,109 0 0 0 16 0 39 22 osh-native-souffle
1 no-host bin-true 106,349 0 0 0 8 0 1,990 101 bash
9 no-host bin-true 66,442 0 0 0 8 0 1,993 83 dash
17 no-host bin-true 771,707 0 0 0 8 0 1,997 84 osh-cpython
25 no-host bin-true 126,340 0 0 0 16 0 1,990 49 osh-native
33 no-host bin-true 124,227 0 0 0 16 0 1,989 56 osh-native-souffle
2 no-host configure.cpython 2,221,645 0 0 0 32,928 0 14,460 936 bash
10 no-host configure.cpython 2,242,434 0 0 0 32,992 0 14,588 987 dash
18 no-host configure.cpython 6,212,940 0 0 0 27,512 0 13,263 1,186 osh-cpython
26 no-host configure.cpython 2,219,704 0 0 0 27,520 0 13,244 957 osh-native
34 no-host configure.cpython 2,201,398 1 0 0 27,520 0 13,250 951 osh-native-souffle
4 no-host configure.ocaml 410,435 0 0 0 5,120 0 1,953 156 bash
12 no-host configure.ocaml 390,493 0 0 0 5,112 0 1,882 158 dash
20 no-host configure.ocaml 647,197 0 0 0 5,112 0 1,856 174 osh-cpython
28 no-host configure.ocaml 412,536 0 0 0 5,120 0 1,925 155 osh-native
36 no-host configure.ocaml 412,509 0 0 0 5,120 0 1,926 163 osh-native-souffle
5 no-host configure.tcc 6,537 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,012 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,957 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,111,220 0 0 0 42,400 0 18,607 1,040 bash
11 no-host configure.util-linux 2,257,369 1 0 0 42,584 0 17,411 1,049 dash
19 no-host configure.util-linux 5,372,170 6 0 0 39,112 0 17,012 1,132 osh-cpython
27 no-host configure.util-linux 1,990,948 2 0 0 39,120 0 16,962 954 osh-native
35 no-host configure.util-linux 1,990,157 0 0 0 39,136 0 17,111 1,028 osh-native-souffle
6 no-host configure.yash 256,902 0 0 0 4,120 0 872 79 bash
14 no-host configure.yash 244,593 0 0 0 3,720 0 869 83 dash
22 no-host configure.yash 388,400 0 0 0 3,728 0 855 84 osh-cpython
30 no-host configure.yash 257,973 0 0 0 3,736 0 851 85 osh-native
38 no-host configure.yash 256,710 0 0 0 3,736 0 850 81 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,938 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-02d1107e
dash dash-0ebcf347
osh-cpython osh-4073b5bf
osh-native osh-4c151e90
osh-native-souffle osh-1288bda2
host label host id
no-host no-host-556df3ee