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 470 22 21 24.45 1.15
bin-true no-host 671 546 2,296 817 813 3.42 1.22
configure.cpython no-host 14,993 14,985 28,444 15,411 15,263 1.90 1.03
configure.ocaml no-host 3,807 3,714 4,660 3,828 3,821 1.22 1.01
configure.tcc no-host 48 41 201 48 48 4.23 1.02
configure.util-linux no-host 13,878 14,759 31,433 14,353 14,188 2.26 1.03
configure.yash no-host 1,799 1,758 2,500 1,834 1,811 1.39 1.02
hello-world no-host 2 1 56 3 3 36.92 1.87

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,525 1,103 23,666 3,219 3,096 9.37 1.27
bin-true no-host 104,371 66,453 775,718 126,210 125,225 7.43 1.21
configure.cpython no-host 2,223,797 2,239,194 6,213,865 2,213,753 2,211,594 2.79 1.00
configure.ocaml no-host 410,148 391,574 647,206 413,222 412,748 1.58 1.01
configure.tcc no-host 6,577 5,481 24,097 6,975 6,913 3.66 1.06
configure.util-linux no-host 2,109,625 2,257,996 5,396,114 1,995,219 1,994,203 2.56 0.95
configure.yash no-host 256,701 244,707 388,781 258,387 257,946 1.51 1.01
hello-world no-host 155 84 3,948 344 339 25.47 2.22

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.8 9.0 8.5 5.12 2.03
bin-true no-host 2.9 1.4 18.1 8.3 7.7 6.28 2.86
configure.cpython no-host 27.1 27.4 27.4 27.5 27.5 1.01 1.01
configure.ocaml no-host 20.6 20.4 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.1 19.4 19.4 19.3 19.1 1.01 1.01
configure.util-linux no-host 30.1 30.0 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.4 24.5 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.9 1.4 18.2 6.2 5.8 6.32 2.14

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 817 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,411 1 64 14.9 27.5 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,353 2 59 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,828 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,834 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 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.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 813 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,263 1 60 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,188 3 58 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,821 1 2 2.6 20.4 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.1 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,811 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 19 1 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 470 416 56 22.8 osh-cpython
31 no-host abuild-print-help 22 11 12 9.0 osh-native
39 no-host abuild-print-help 21 7 14 8.5 osh-native-souffle
1 no-host bin-true 671 501 201 2.9 bash
9 no-host bin-true 546 426 131 1.4 dash
17 no-host bin-true 2,296 1,503 1,050 18.1 osh-cpython
25 no-host bin-true 817 579 252 8.3 osh-native
33 no-host bin-true 813 558 270 7.7 osh-native-souffle
2 no-host configure.cpython 14,993 9,032 6,363 27.1 bash
10 no-host configure.cpython 14,985 9,168 6,230 27.4 dash
18 no-host configure.cpython 28,444 17,232 13,043 27.4 osh-cpython
26 no-host configure.cpython 15,411 9,144 6,533 27.5 osh-native
34 no-host configure.cpython 15,263 9,030 6,306 27.5 osh-native-souffle
4 no-host configure.ocaml 3,807 1,628 1,200 20.6 bash
12 no-host configure.ocaml 3,714 1,473 1,258 20.4 dash
20 no-host configure.ocaml 4,660 2,228 1,646 20.4 osh-cpython
28 no-host configure.ocaml 3,828 1,637 1,225 20.6 osh-native
36 no-host configure.ocaml 3,821 1,620 1,233 20.4 osh-native-souffle
5 no-host configure.tcc 48 24 25 19.1 bash
13 no-host configure.tcc 41 21 21 19.4 dash
21 no-host configure.tcc 201 134 71 19.4 osh-cpython
29 no-host configure.tcc 48 31 18 19.3 osh-native
37 no-host configure.tcc 48 26 22 19.1 osh-native-souffle
3 no-host configure.util-linux 13,878 8,783 5,567 30.1 bash
11 no-host configure.util-linux 14,759 8,999 6,245 30.0 dash
19 no-host configure.util-linux 31,433 20,953 11,571 30.1 osh-cpython
27 no-host configure.util-linux 14,353 8,797 5,752 30.0 osh-native
35 no-host configure.util-linux 14,188 8,526 5,851 30.3 osh-native-souffle
6 no-host configure.yash 1,799 1,001 807 24.4 bash
14 no-host configure.yash 1,758 1,057 700 24.5 dash
22 no-host configure.yash 2,500 1,566 977 24.2 osh-cpython
30 no-host configure.yash 1,834 1,119 717 24.4 osh-native
38 no-host configure.yash 1,811 1,087 728 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 34 21 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 5.8 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,525 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,666 0 0 0 8 0 45 15 osh-cpython
31 no-host abuild-print-help 3,219 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,096 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,371 0 0 0 8 0 1,991 92 bash
9 no-host bin-true 66,453 0 0 0 8 0 1,988 106 dash
17 no-host bin-true 775,718 0 0 0 8 0 1,997 369 osh-cpython
25 no-host bin-true 126,210 0 0 0 16 0 1,990 57 osh-native
33 no-host bin-true 125,225 0 0 0 16 0 1,989 59 osh-native-souffle
2 no-host configure.cpython 2,223,797 0 0 0 32,928 0 14,517 1,072 bash
10 no-host configure.cpython 2,239,194 1 0 0 32,992 0 14,632 1,009 dash
18 no-host configure.cpython 6,213,865 1 0 0 27,512 0 13,214 1,092 osh-cpython
26 no-host configure.cpython 2,213,753 0 0 0 27,520 0 13,271 916 osh-native
34 no-host configure.cpython 2,211,594 0 0 0 27,520 0 13,262 982 osh-native-souffle
4 no-host configure.ocaml 410,148 0 0 0 5,120 0 1,958 170 bash
12 no-host configure.ocaml 391,574 0 0 0 5,112 0 1,928 144 dash
20 no-host configure.ocaml 647,206 0 0 0 5,112 0 1,848 170 osh-cpython
28 no-host configure.ocaml 413,222 0 0 0 5,120 0 1,932 171 osh-native
36 no-host configure.ocaml 412,748 0 0 0 5,120 0 1,928 141 osh-native-souffle
5 no-host configure.tcc 6,577 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,097 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,975 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,913 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,109,625 1 0 0 42,400 0 18,521 1,048 bash
11 no-host configure.util-linux 2,257,996 0 0 0 42,584 0 17,389 1,119 dash
19 no-host configure.util-linux 5,396,114 5 0 0 39,112 0 16,965 1,141 osh-cpython
27 no-host configure.util-linux 1,995,219 1 0 0 39,120 0 16,964 926 osh-native
35 no-host configure.util-linux 1,994,203 0 0 0 39,128 0 16,989 940 osh-native-souffle
6 no-host configure.yash 256,701 0 0 0 4,120 0 873 70 bash
14 no-host configure.yash 244,707 0 0 0 3,720 0 872 87 dash
22 no-host configure.yash 388,781 0 0 0 3,728 0 852 97 osh-cpython
30 no-host configure.yash 258,387 0 0 0 3,736 0 850 67 osh-native
38 no-host configure.yash 257,946 0 0 0 3,736 0 849 71 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c8eff960
dash dash-0ebcf347
osh-cpython osh-bda15f27
osh-native osh-45db6cc1
osh-native-souffle osh-e388be2d
host label host id
no-host no-host-556df3ee