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 471 22 21 24.44 1.15
bin-true no-host 679 542 2,290 825 800 3.37 1.22
configure.cpython no-host 15,418 15,304 28,933 15,469 15,599 1.88 1.00
configure.ocaml no-host 3,854 3,801 4,764 3,933 3,866 1.24 1.02
configure.tcc no-host 49 42 206 51 49 4.25 1.05
configure.util-linux no-host 14,198 15,068 31,698 14,564 14,577 2.23 1.03
configure.yash no-host 1,870 1,805 2,513 1,879 1,848 1.34 1.00
hello-world no-host 2 1 58 3 3 38.04 1.85

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,564 1,137 23,860 3,160 3,091 9.31 1.23
bin-true no-host 107,362 65,433 771,661 127,265 124,189 7.19 1.19
configure.cpython no-host 2,224,522 2,239,141 6,207,290 2,220,182 2,209,188 2.79 1.00
configure.ocaml no-host 410,001 391,160 646,871 413,215 412,151 1.58 1.01
configure.tcc no-host 6,597 5,489 24,021 6,944 6,932 3.64 1.05
configure.util-linux no-host 2,101,199 2,255,737 5,377,803 1,992,263 1,992,527 2.56 0.95
configure.yash no-host 256,513 244,534 387,677 258,519 257,880 1.51 1.01
hello-world no-host 149 81 3,944 342 336 26.47 2.30

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.7 9.0 8.7 5.09 2.03
bin-true no-host 2.9 1.6 18.4 7.9 7.6 6.37 2.73
configure.cpython no-host 27.5 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.4 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.1 29.9 30.1 30.3 0.99 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.8 1.4 18.4 6.2 5.9 6.67 2.24

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 825 1 2 2.6 7.9 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,469 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,564 3 62 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,933 1 2 2.6 20.4 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,879 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 800 1 2 2.6 7.6 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,599 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,577 3 62 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,866 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 49 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,848 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.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 19 11 9 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 471 428 46 22.7 osh-cpython
31 no-host abuild-print-help 22 14 8 9.0 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 679 505 205 2.9 bash
9 no-host bin-true 542 421 129 1.6 dash
17 no-host bin-true 2,290 1,476 1,072 18.4 osh-cpython
25 no-host bin-true 825 592 247 7.9 osh-native
33 no-host bin-true 800 551 263 7.6 osh-native-souffle
2 no-host configure.cpython 15,418 9,367 6,458 27.5 bash
10 no-host configure.cpython 15,304 9,202 6,521 27.4 dash
18 no-host configure.cpython 28,933 17,838 12,954 27.4 osh-cpython
26 no-host configure.cpython 15,469 9,039 6,701 27.5 osh-native
34 no-host configure.cpython 15,599 9,201 6,489 27.5 osh-native-souffle
4 no-host configure.ocaml 3,854 1,632 1,259 20.6 bash
12 no-host configure.ocaml 3,801 1,681 1,138 20.6 dash
20 no-host configure.ocaml 4,764 2,393 1,585 20.6 osh-cpython
28 no-host configure.ocaml 3,933 1,750 1,222 20.4 osh-native
36 no-host configure.ocaml 3,866 1,700 1,203 20.4 osh-native-souffle
5 no-host configure.tcc 49 30 19 19.4 bash
13 no-host configure.tcc 42 19 23 19.3 dash
21 no-host configure.tcc 206 146 63 19.3 osh-cpython
29 no-host configure.tcc 51 33 18 19.4 osh-native
37 no-host configure.tcc 49 24 25 19.4 osh-native-souffle
3 no-host configure.util-linux 14,198 8,954 5,716 30.1 bash
11 no-host configure.util-linux 15,068 9,212 6,347 30.1 dash
19 no-host configure.util-linux 31,698 21,245 11,506 29.9 osh-cpython
27 no-host configure.util-linux 14,564 8,828 5,928 30.1 osh-native
35 no-host configure.util-linux 14,577 8,796 5,988 30.3 osh-native-souffle
6 no-host configure.yash 1,870 1,062 807 24.2 bash
14 no-host configure.yash 1,805 1,037 771 24.2 dash
22 no-host configure.yash 2,513 1,559 994 24.4 osh-cpython
30 no-host configure.yash 1,879 1,094 783 24.2 osh-native
38 no-host configure.yash 1,848 1,050 802 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.4 dash
16 no-host hello-world 58 39 19 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,564 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,137 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,860 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 40 1 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 5 osh-native-souffle
1 no-host bin-true 107,362 0 0 0 8 0 1,995 63 bash
9 no-host bin-true 65,433 0 0 0 8 0 1,989 54 dash
17 no-host bin-true 771,661 0 0 0 8 0 2,003 100 osh-cpython
25 no-host bin-true 127,265 0 0 0 16 0 1,994 218 osh-native
33 no-host bin-true 124,189 0 0 0 16 0 1,990 55 osh-native-souffle
2 no-host configure.cpython 2,224,522 0 0 0 32,928 0 14,571 1,048 bash
10 no-host configure.cpython 2,239,141 0 0 0 32,992 0 14,665 1,109 dash
18 no-host configure.cpython 6,207,290 1 0 0 27,512 0 13,217 1,088 osh-cpython
26 no-host configure.cpython 2,220,182 0 0 0 27,520 0 13,265 976 osh-native
34 no-host configure.cpython 2,209,188 3 0 0 27,520 0 13,237 908 osh-native-souffle
4 no-host configure.ocaml 410,001 0 0 0 5,120 0 1,947 142 bash
12 no-host configure.ocaml 391,160 0 0 0 5,112 0 1,892 152 dash
20 no-host configure.ocaml 646,871 0 0 0 5,112 0 1,858 182 osh-cpython
28 no-host configure.ocaml 413,215 0 0 0 5,120 0 1,933 152 osh-native
36 no-host configure.ocaml 412,151 0 0 0 5,120 0 1,930 145 osh-native-souffle
5 no-host configure.tcc 6,597 0 0 0 104 0 49 6 bash
13 no-host configure.tcc 5,489 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 24,021 0 0 0 96 0 54 8 osh-cpython
29 no-host configure.tcc 6,944 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,932 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,101,199 0 0 0 42,400 0 18,750 926 bash
11 no-host configure.util-linux 2,255,737 0 0 0 42,584 0 17,445 1,053 dash
19 no-host configure.util-linux 5,377,803 11 0 0 39,112 0 16,937 1,239 osh-cpython
27 no-host configure.util-linux 1,992,263 1 0 0 39,128 0 16,984 1,086 osh-native
35 no-host configure.util-linux 1,992,527 0 0 0 39,136 0 17,040 971 osh-native-souffle
6 no-host configure.yash 256,513 0 0 0 4,120 0 874 88 bash
14 no-host configure.yash 244,534 0 0 0 3,720 0 865 88 dash
22 no-host configure.yash 387,677 0 0 0 3,728 0 850 100 osh-cpython
30 no-host configure.yash 258,519 0 0 0 3,736 0 853 79 osh-native
38 no-host configure.yash 257,880 0 0 0 3,736 0 853 85 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,944 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 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-7808516e
dash dash-0ebcf347
osh-cpython osh-e8d34429
osh-native osh-8612e84e
osh-native-souffle osh-2eee6107
host label host id
no-host no-host-556df3ee