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 10 467 22 21 24.43 1.13
bin-true no-host 687 541 2,337 815 807 3.40 1.19
configure.cpython no-host 14,881 14,979 28,517 15,084 15,246 1.92 1.01
configure.ocaml no-host 3,760 3,708 4,617 3,787 3,801 1.23 1.01
configure.tcc no-host 47 41 205 48 48 4.36 1.03
configure.util-linux no-host 13,857 14,681 31,152 14,219 14,186 2.25 1.03
configure.yash no-host 1,824 1,750 2,451 1,803 1,807 1.34 0.99
hello-world no-host 2 1 57 3 3 37.55 1.86

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,532 1,085 23,670 3,174 3,090 9.35 1.25
bin-true no-host 109,441 66,426 776,707 126,241 126,222 7.10 1.15
configure.cpython no-host 2,221,863 2,240,048 6,218,033 2,216,593 2,215,439 2.80 1.00
configure.ocaml no-host 409,842 391,283 647,460 413,411 413,102 1.58 1.01
configure.tcc no-host 6,562 5,478 24,078 6,955 6,902 3.67 1.06
configure.util-linux no-host 2,098,560 2,263,781 5,394,023 1,997,074 1,989,544 2.57 0.95
configure.yash no-host 256,272 244,413 389,506 257,644 258,147 1.52 1.01
hello-world no-host 150 83 3,954 343 337 26.36 2.29

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.3 3.4 22.7 9.0 8.5 5.25 2.09
bin-true no-host 2.9 1.4 18.4 8.1 7.3 6.37 2.82
configure.cpython no-host 27.4 27.4 27.4 27.1 27.4 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.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 24.6 24.4 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.9 6.62 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 815 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,084 1 60 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,219 3 60 21.2 30.3 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,787 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 48 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,803 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 9.0 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 807 1 2 2.6 7.3 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,246 2 60 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,186 3 58 21.2 30.0 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,801 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,807 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 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 12 8 4.3 bash
15 no-host abuild-print-help 10 4 5 3.4 dash
23 no-host abuild-print-help 467 415 56 22.7 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 20 1 8.5 osh-native-souffle
1 no-host bin-true 687 517 199 2.9 bash
9 no-host bin-true 541 415 136 1.4 dash
17 no-host bin-true 2,337 1,467 1,135 18.4 osh-cpython
25 no-host bin-true 815 564 264 8.1 osh-native
33 no-host bin-true 807 568 252 7.3 osh-native-souffle
2 no-host configure.cpython 14,881 9,068 6,209 27.4 bash
10 no-host configure.cpython 14,979 8,975 6,423 27.4 dash
18 no-host configure.cpython 28,517 17,280 13,090 27.4 osh-cpython
26 no-host configure.cpython 15,084 8,881 6,472 27.1 osh-native
34 no-host configure.cpython 15,246 8,955 6,416 27.4 osh-native-souffle
4 no-host configure.ocaml 3,760 1,614 1,185 20.4 bash
12 no-host configure.ocaml 3,708 1,638 1,089 20.6 dash
20 no-host configure.ocaml 4,617 2,244 1,584 20.6 osh-cpython
28 no-host configure.ocaml 3,787 1,547 1,281 20.6 osh-native
36 no-host configure.ocaml 3,801 1,565 1,272 20.6 osh-native-souffle
5 no-host configure.tcc 47 32 15 19.4 bash
13 no-host configure.tcc 41 15 27 19.4 dash
21 no-host configure.tcc 205 162 46 19.4 osh-cpython
29 no-host configure.tcc 48 21 27 19.3 osh-native
37 no-host configure.tcc 48 22 27 19.3 osh-native-souffle
3 no-host configure.util-linux 13,857 8,800 5,530 30.1 bash
11 no-host configure.util-linux 14,681 9,014 6,161 30.1 dash
19 no-host configure.util-linux 31,152 20,661 11,574 30.3 osh-cpython
27 no-host configure.util-linux 14,219 8,712 5,711 30.3 osh-native
35 no-host configure.util-linux 14,186 8,452 5,926 30.0 osh-native-souffle
6 no-host configure.yash 1,824 1,062 762 24.6 bash
14 no-host configure.yash 1,750 1,009 745 24.4 dash
22 no-host configure.yash 2,451 1,493 999 24.4 osh-cpython
30 no-host configure.yash 1,803 1,027 781 24.2 osh-native
38 no-host configure.yash 1,807 1,096 716 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 57 37 20 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,532 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,085 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,670 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,174 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,090 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 109,441 0 0 0 8 0 1,996 184 bash
9 no-host bin-true 66,426 0 0 0 8 0 1,988 48 dash
17 no-host bin-true 776,707 0 0 0 8 0 1,991 213 osh-cpython
25 no-host bin-true 126,241 0 0 0 16 0 1,995 140 osh-native
33 no-host bin-true 126,222 0 0 0 16 0 1,993 66 osh-native-souffle
2 no-host configure.cpython 2,221,863 0 0 0 32,928 0 14,561 1,111 bash
10 no-host configure.cpython 2,240,048 0 0 0 32,992 0 14,593 965 dash
18 no-host configure.cpython 6,218,033 0 0 0 27,512 0 13,242 1,241 osh-cpython
26 no-host configure.cpython 2,216,593 0 0 0 27,520 0 13,222 1,103 osh-native
34 no-host configure.cpython 2,215,439 0 0 0 27,520 0 13,237 1,090 osh-native-souffle
4 no-host configure.ocaml 409,842 0 0 0 5,120 0 1,947 270 bash
12 no-host configure.ocaml 391,283 0 0 0 5,112 0 1,902 156 dash
20 no-host configure.ocaml 647,460 0 0 0 5,112 0 1,862 170 osh-cpython
28 no-host configure.ocaml 413,411 0 0 0 5,120 0 1,920 160 osh-native
36 no-host configure.ocaml 413,102 0 0 0 5,120 0 1,923 198 osh-native-souffle
5 no-host configure.tcc 6,562 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 24,078 0 0 0 96 0 53 19 osh-cpython
29 no-host configure.tcc 6,955 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,902 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,098,560 0 0 0 42,400 0 18,551 1,007 bash
11 no-host configure.util-linux 2,263,781 0 0 0 42,592 0 17,452 1,086 dash
19 no-host configure.util-linux 5,394,023 10 0 0 39,112 0 17,080 1,155 osh-cpython
27 no-host configure.util-linux 1,997,074 0 0 0 39,120 0 16,983 861 osh-native
35 no-host configure.util-linux 1,989,544 0 0 0 39,128 0 16,999 954 osh-native-souffle
6 no-host configure.yash 256,272 0 0 0 4,120 0 880 92 bash
14 no-host configure.yash 244,413 0 0 0 3,720 0 864 73 dash
22 no-host configure.yash 389,506 0 0 0 3,728 0 852 101 osh-cpython
30 no-host configure.yash 257,644 0 0 0 3,736 0 852 73 osh-native
38 no-host configure.yash 258,147 0 0 0 3,736 0 849 60 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,954 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 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1daf4cdf
dash dash-0ebcf347
osh-cpython osh-ebb0491b
osh-native osh-e5385e90
osh-native-souffle osh-f58a0701
host label host id
no-host no-host-556df3ee