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 19 9 467 23 21 24.15 1.19
bin-true no-host 674 547 2,304 820 815 3.42 1.22
configure.cpython no-host 15,039 15,105 29,363 15,503 15,392 1.95 1.03
configure.ocaml no-host 3,832 3,749 4,728 3,845 3,818 1.23 1.00
configure.tcc no-host 48 42 207 49 48 4.32 1.03
configure.util-linux no-host 14,045 14,909 31,852 14,509 14,310 2.27 1.03
configure.yash no-host 1,814 1,786 2,510 1,871 1,815 1.38 1.03
hello-world no-host 2 1 57 3 3 37.55 1.95

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,561 1,103 23,692 3,180 3,065 9.25 1.24
bin-true no-host 105,410 66,422 776,750 128,249 124,265 7.37 1.22
configure.cpython no-host 2,217,998 2,245,087 6,206,953 2,217,045 2,206,635 2.80 1.00
configure.ocaml no-host 410,359 390,757 647,387 413,391 412,011 1.58 1.01
configure.tcc no-host 6,555 5,467 24,087 6,943 6,895 3.67 1.06
configure.util-linux no-host 2,104,026 2,260,090 5,384,978 1,999,631 1,990,144 2.56 0.95
configure.yash no-host 256,092 245,084 389,056 258,191 257,510 1.52 1.01
hello-world no-host 153 82 3,943 343 336 25.77 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.4 22.6 8.9 8.5 5.06 2.00
bin-true no-host 2.9 1.4 18.4 8.1 7.7 6.37 2.82
configure.cpython no-host 27.4 27.3 27.3 27.1 27.5 1.00 0.99
configure.ocaml no-host 20.4 20.6 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.4 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.1 30.3 30.0 30.3 1.00 0.99
configure.yash no-host 24.2 24.4 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.8 1.6 18.1 6.3 5.9 6.58 2.29

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 820 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,503 1 64 14.9 27.1 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,509 3 61 21.2 30.0 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,845 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 49 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,871 1 2 2.5 24.4 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 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 815 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,392 1 62 14.9 27.5 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,310 3 60 21.2 30.3 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,818 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 48 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,815 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 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 19 14 6 4.5 bash
15 no-host abuild-print-help 9 6 3 3.4 dash
23 no-host abuild-print-help 467 418 51 22.6 osh-cpython
31 no-host abuild-print-help 23 13 11 8.9 osh-native
39 no-host abuild-print-help 21 19 2 8.5 osh-native-souffle
1 no-host bin-true 674 521 184 2.9 bash
9 no-host bin-true 547 421 135 1.4 dash
17 no-host bin-true 2,304 1,445 1,121 18.4 osh-cpython
25 no-host bin-true 820 576 261 8.1 osh-native
33 no-host bin-true 815 571 259 7.7 osh-native-souffle
2 no-host configure.cpython 15,039 9,018 6,426 27.4 bash
10 no-host configure.cpython 15,105 9,157 6,364 27.3 dash
18 no-host configure.cpython 29,363 17,828 13,455 27.3 osh-cpython
26 no-host configure.cpython 15,503 9,095 6,671 27.1 osh-native
34 no-host configure.cpython 15,392 8,825 6,693 27.5 osh-native-souffle
4 no-host configure.ocaml 3,832 1,642 1,217 20.4 bash
12 no-host configure.ocaml 3,749 1,600 1,167 20.6 dash
20 no-host configure.ocaml 4,728 2,311 1,634 20.6 osh-cpython
28 no-host configure.ocaml 3,845 1,592 1,290 20.6 osh-native
36 no-host configure.ocaml 3,818 1,710 1,144 20.6 osh-native-souffle
5 no-host configure.tcc 48 25 23 19.4 bash
13 no-host configure.tcc 42 21 22 19.4 dash
21 no-host configure.tcc 207 129 81 19.3 osh-cpython
29 no-host configure.tcc 49 40 9 19.3 osh-native
37 no-host configure.tcc 48 28 21 19.3 osh-native-souffle
3 no-host configure.util-linux 14,045 8,843 5,681 30.3 bash
11 no-host configure.util-linux 14,909 9,266 6,116 30.1 dash
19 no-host configure.util-linux 31,852 21,346 11,613 30.3 osh-cpython
27 no-host configure.util-linux 14,509 8,749 5,959 30.0 osh-native
35 no-host configure.util-linux 14,310 8,652 5,854 30.3 osh-native-souffle
6 no-host configure.yash 1,814 1,034 790 24.2 bash
14 no-host configure.yash 1,786 1,080 708 24.4 dash
22 no-host configure.yash 2,510 1,559 994 24.2 osh-cpython
30 no-host configure.yash 1,871 1,086 786 24.4 osh-native
38 no-host configure.yash 1,815 1,093 726 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 33 24 18.1 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,561 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,692 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,180 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,065 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,410 0 0 0 8 0 1,994 43 bash
9 no-host bin-true 66,422 0 0 0 8 0 1,993 41 dash
17 no-host bin-true 776,750 0 0 0 8 0 1,996 128 osh-cpython
25 no-host bin-true 128,249 0 0 0 16 0 1,994 54 osh-native
33 no-host bin-true 124,265 0 0 0 16 0 1,986 51 osh-native-souffle
2 no-host configure.cpython 2,217,998 0 0 0 32,928 0 14,516 1,061 bash
10 no-host configure.cpython 2,245,087 0 0 0 32,992 0 14,669 1,007 dash
18 no-host configure.cpython 6,206,953 0 0 0 27,512 0 13,277 1,117 osh-cpython
26 no-host configure.cpython 2,217,045 0 0 0 27,520 0 13,203 947 osh-native
34 no-host configure.cpython 2,206,635 0 0 0 27,520 0 13,255 1,088 osh-native-souffle
4 no-host configure.ocaml 410,359 0 0 0 5,120 0 1,961 145 bash
12 no-host configure.ocaml 390,757 0 0 0 5,112 0 1,900 177 dash
20 no-host configure.ocaml 647,387 0 0 0 5,112 0 1,856 170 osh-cpython
28 no-host configure.ocaml 413,391 0 0 0 5,120 0 1,927 165 osh-native
36 no-host configure.ocaml 412,011 0 0 0 5,120 0 1,933 147 osh-native-souffle
5 no-host configure.tcc 6,555 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,467 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,087 0 0 0 96 0 52 6 osh-cpython
29 no-host configure.tcc 6,943 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,895 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,104,026 1 0 0 42,400 0 18,506 890 bash
11 no-host configure.util-linux 2,260,090 1 0 0 42,584 0 17,430 1,095 dash
19 no-host configure.util-linux 5,384,978 12 0 0 39,112 0 17,092 1,305 osh-cpython
27 no-host configure.util-linux 1,999,631 1 0 0 39,120 0 16,947 984 osh-native
35 no-host configure.util-linux 1,990,144 1 0 0 39,128 0 16,989 893 osh-native-souffle
6 no-host configure.yash 256,092 0 0 0 4,120 0 869 89 bash
14 no-host configure.yash 245,084 0 0 0 3,720 0 867 74 dash
22 no-host configure.yash 389,056 0 0 0 3,728 0 856 82 osh-cpython
30 no-host configure.yash 258,191 0 0 0 3,736 0 849 82 osh-native
38 no-host configure.yash 257,510 0 0 0 3,736 0 849 76 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,943 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6795964b
dash dash-0ebcf347
osh-cpython osh-4c9c8360
osh-native osh-9d281b5b
osh-native-souffle osh-d05a9285
host label host id
no-host no-host-556df3ee