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 16 9 535 22 21 33.42 1.39
bin-true no-host 642 474 2,495 826 826 3.89 1.29
configure.cpython no-host 14,140 14,031 29,602 14,865 14,978 2.09 1.05
configure.ocaml no-host 3,692 3,654 4,689 3,770 3,778 1.27 1.02
configure.tcc no-host 47 42 222 49 50 4.76 1.06
configure.util-linux no-host 12,835 13,541 32,574 13,802 13,968 2.54 1.08
configure.yash no-host 1,723 1,678 2,461 1,744 1,772 1.43 1.01
hello-world no-host 1 1 61 3 3 47.04 2.25

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,433 1,155 24,682 3,454 3,343 10.14 1.42
bin-true no-host 102,914 49,419 828,553 137,257 135,290 8.05 1.33
configure.cpython no-host 1,620,098 1,642,025 5,942,380 1,806,635 1,803,026 3.67 1.12
configure.ocaml no-host 298,857 280,457 555,094 317,004 315,539 1.86 1.06
configure.tcc no-host 5,205 4,206 23,748 5,964 5,877 4.56 1.15
configure.util-linux no-host 1,541,561 1,697,423 4,964,022 1,715,362 1,712,842 3.22 1.11
configure.yash no-host 173,629 159,498 314,625 179,730 178,896 1.81 1.04
hello-world no-host 152 85 3,881 384 375 25.53 2.53

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.7 3.9 22.7 9.8 9.3 4.80 2.08
bin-true no-host 3.1 1.6 18.1 8.8 8.4 5.74 2.79
configure.cpython no-host 34.5 34.4 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.5 28.8 28.7 0.99 1.00
configure.tcc no-host 26.4 26.1 26.3 26.1 26.1 1.00 0.99
configure.util-linux no-host 39.7 39.9 39.5 39.7 39.6 0.99 1.00
configure.yash no-host 33.5 33.5 33.2 33.4 33.3 0.99 1.00
hello-world no-host 3.1 1.6 18.2 6.8 6.3 5.79 2.17

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.3 6.8 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,865 1 68 15.2 34.5 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,802 3 62 21.4 39.7 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,770 1 2 2.7 28.8 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.1 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,744 1 2 2.6 33.4 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.3 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.4 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,978 1 64 15.2 34.4 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,968 3 59 21.4 39.6 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,778 1 2 2.7 28.7 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.1 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,772 1 2 2.6 33.3 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,366 64,433 42,634 4,563 54,471 57,332 277 3 85,268 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 16 9 8 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 535 474 65 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 9.8 osh-native
39 no-host abuild-print-help 21 10 11 9.3 osh-native-souffle
1 no-host bin-true 642 314 369 3.1 bash
9 no-host bin-true 474 292 189 1.6 dash
17 no-host bin-true 2,495 881 1,879 18.1 osh-cpython
25 no-host bin-true 826 302 542 8.8 osh-native
33 no-host bin-true 826 310 532 8.4 osh-native-souffle
2 no-host configure.cpython 14,140 7,583 6,950 34.5 bash
10 no-host configure.cpython 14,031 7,560 6,880 34.4 dash
18 no-host configure.cpython 29,602 16,117 15,463 34.5 osh-cpython
26 no-host configure.cpython 14,865 7,350 7,833 34.5 osh-native
34 no-host configure.cpython 14,978 7,374 7,752 34.4 osh-native-souffle
4 no-host configure.ocaml 3,692 1,484 1,248 28.8 bash
12 no-host configure.ocaml 3,654 1,470 1,208 28.7 dash
20 no-host configure.ocaml 4,689 2,155 1,756 28.5 osh-cpython
28 no-host configure.ocaml 3,770 1,533 1,274 28.8 osh-native
36 no-host configure.ocaml 3,778 1,502 1,315 28.7 osh-native-souffle
5 no-host configure.tcc 47 25 22 26.4 bash
13 no-host configure.tcc 42 19 24 26.1 dash
21 no-host configure.tcc 222 152 73 26.3 osh-cpython
29 no-host configure.tcc 49 28 21 26.1 osh-native
37 no-host configure.tcc 50 28 22 26.1 osh-native-souffle
3 no-host configure.util-linux 12,835 6,528 6,790 39.7 bash
11 no-host configure.util-linux 13,541 6,428 7,615 39.9 dash
19 no-host configure.util-linux 32,574 20,297 13,367 39.5 osh-cpython
27 no-host configure.util-linux 13,802 6,219 7,831 39.7 osh-native
35 no-host configure.util-linux 13,968 6,338 7,724 39.6 osh-native-souffle
6 no-host configure.yash 1,723 954 778 33.5 bash
14 no-host configure.yash 1,678 939 736 33.5 dash
22 no-host configure.yash 2,461 1,456 1,048 33.2 osh-cpython
30 no-host configure.yash 1,744 950 798 33.4 osh-native
38 no-host configure.yash 1,772 939 835 33.3 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 61 42 19 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.8 osh-native
32 no-host hello-world 3 3 0 6.3 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,433 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,682 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,454 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,343 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,914 0 0 0 8 0 1,983 108 bash
9 no-host bin-true 49,419 0 0 0 8 0 2,963 51 dash
17 no-host bin-true 828,553 0 0 0 8 0 1,986 451 osh-cpython
25 no-host bin-true 137,257 0 0 0 16 0 1,978 81 osh-native
33 no-host bin-true 135,290 0 0 0 16 0 1,953 104 osh-native-souffle
2 no-host configure.cpython 1,620,098 0 0 0 25,272 0 14,001 1,241 bash
10 no-host configure.cpython 1,642,025 0 0 0 25,272 0 14,075 1,171 dash
18 no-host configure.cpython 5,942,380 1 0 0 25,272 0 12,891 1,210 osh-cpython
26 no-host configure.cpython 1,806,635 0 0 0 25,280 0 12,875 1,137 osh-native
34 no-host configure.cpython 1,803,026 0 0 0 25,280 0 12,867 1,237 osh-native-souffle
4 no-host configure.ocaml 298,857 0 0 0 4,432 0 2,015 219 bash
12 no-host configure.ocaml 280,457 0 0 0 4,432 0 2,095 180 dash
20 no-host configure.ocaml 555,094 0 0 0 4,432 0 1,912 192 osh-cpython
28 no-host configure.ocaml 317,004 0 0 0 4,440 0 1,995 216 osh-native
36 no-host configure.ocaml 315,539 0 0 0 4,440 0 1,999 202 osh-native-souffle
5 no-host configure.tcc 5,205 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 5 dash
21 no-host configure.tcc 23,748 0 0 0 88 0 53 8 osh-cpython
29 no-host configure.tcc 5,964 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,877 0 0 0 96 0 47 11 osh-native-souffle
3 no-host configure.util-linux 1,541,561 0 0 0 35,944 0 18,992 1,235 bash
11 no-host configure.util-linux 1,697,423 1 0 0 35,936 0 17,018 1,378 dash
19 no-host configure.util-linux 4,964,022 3 0 0 35,944 0 17,559 1,136 osh-cpython
27 no-host configure.util-linux 1,715,362 2 0 0 35,952 0 17,534 1,128 osh-native
35 no-host configure.util-linux 1,712,842 0 0 0 35,952 0 17,463 1,121 osh-native-souffle
6 no-host configure.yash 173,629 0 0 0 3,616 0 878 157 bash
14 no-host configure.yash 159,498 0 0 0 3,616 0 996 135 dash
22 no-host configure.yash 314,625 0 0 0 3,616 0 863 159 osh-cpython
30 no-host configure.yash 179,730 0 0 0 3,624 0 860 137 osh-native
38 no-host configure.yash 178,896 0 0 0 3,624 0 857 134 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,881 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 375 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a16d5512
dash dash-cea41b3e
osh-cpython osh-7211ae97
osh-native osh-7c1972a5
osh-native-souffle osh-01062376
host label host id
no-host no-host-2411472