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 532 22 21 33.27 1.35
bin-true no-host 645 465 2,522 833 833 3.91 1.29
configure.cpython no-host 14,053 14,118 29,781 14,871 15,000 2.12 1.06
configure.ocaml no-host 3,716 3,661 4,703 3,765 3,769 1.27 1.01
configure.tcc no-host 47 42 222 50 50 4.71 1.05
configure.util-linux no-host 12,790 13,671 32,444 13,883 13,971 2.54 1.09
configure.yash no-host 1,729 1,676 2,479 1,758 1,749 1.43 1.02
hello-world no-host 1 1 60 3 3 44.23 2.18

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,394 1,176 24,856 3,452 3,384 10.38 1.44
bin-true no-host 102,970 49,408 838,078 137,292 138,292 8.14 1.33
configure.cpython no-host 1,622,828 1,638,186 5,948,162 1,800,508 1,793,486 3.67 1.11
configure.ocaml no-host 298,605 280,524 556,395 316,958 316,316 1.86 1.06
configure.tcc no-host 5,228 4,211 23,753 5,924 5,905 4.54 1.13
configure.util-linux no-host 1,532,892 1,697,753 4,956,034 1,723,285 1,703,150 3.23 1.12
configure.yash no-host 173,865 159,546 315,518 179,404 178,978 1.81 1.03
hello-world no-host 150 86 3,877 387 380 25.85 2.58

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.8 3.9 22.7 9.8 9.0 4.67 2.03
bin-true no-host 3.3 1.7 18.2 8.7 8.4 5.55 2.64
configure.cpython no-host 34.5 34.5 34.6 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.7 28.5 1.00 1.00
configure.tcc no-host 26.1 26.2 26.3 26.3 26.2 1.01 1.00
configure.util-linux no-host 39.6 39.9 39.7 39.9 39.9 1.00 1.01
configure.yash no-host 33.4 33.3 33.5 33.1 33.4 1.00 0.99
hello-world no-host 3.1 1.6 18.1 6.9 6.4 5.74 2.21

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.9 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 833 1 2 2.6 8.7 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,871 1 67 15.2 34.5 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,883 3 61 21.4 39.9 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,765 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,758 1 2 2.6 33.1 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 833 1 2 2.6 8.4 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 15,000 1 66 15.2 34.5 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,971 3 61 21.4 39.9 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,769 1 2 2.7 28.5 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,749 1 2 2.6 33.4 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 116,367 64,433 42,634 4,563 54,472 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 6 10 4.8 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 532 482 53 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.8 osh-native
39 no-host abuild-print-help 21 10 12 9.0 osh-native-souffle
1 no-host bin-true 645 330 353 3.3 bash
9 no-host bin-true 465 290 181 1.7 dash
17 no-host bin-true 2,522 881 1,906 18.2 osh-cpython
25 no-host bin-true 833 294 557 8.7 osh-native
33 no-host bin-true 833 318 532 8.4 osh-native-souffle
2 no-host configure.cpython 14,053 7,528 6,918 34.5 bash
10 no-host configure.cpython 14,118 7,573 6,942 34.5 dash
18 no-host configure.cpython 29,781 16,341 15,424 34.6 osh-cpython
26 no-host configure.cpython 14,871 7,445 7,737 34.5 osh-native
34 no-host configure.cpython 15,000 7,428 7,707 34.5 osh-native-souffle
4 no-host configure.ocaml 3,716 1,468 1,288 28.7 bash
12 no-host configure.ocaml 3,661 1,465 1,220 28.5 dash
20 no-host configure.ocaml 4,703 2,093 1,835 28.7 osh-cpython
28 no-host configure.ocaml 3,765 1,501 1,307 28.7 osh-native
36 no-host configure.ocaml 3,769 1,493 1,316 28.5 osh-native-souffle
5 no-host configure.tcc 47 21 27 26.1 bash
13 no-host configure.tcc 42 15 27 26.2 dash
21 no-host configure.tcc 222 152 74 26.3 osh-cpython
29 no-host configure.tcc 50 26 24 26.3 osh-native
37 no-host configure.tcc 50 25 25 26.2 osh-native-souffle
3 no-host configure.util-linux 12,790 6,507 6,757 39.6 bash
11 no-host configure.util-linux 13,671 6,517 7,594 39.9 dash
19 no-host configure.util-linux 32,444 20,242 13,282 39.7 osh-cpython
27 no-host configure.util-linux 13,883 6,269 7,857 39.9 osh-native
35 no-host configure.util-linux 13,971 6,220 7,828 39.9 osh-native-souffle
6 no-host configure.yash 1,729 952 786 33.4 bash
14 no-host configure.yash 1,676 926 751 33.3 dash
22 no-host configure.yash 2,479 1,451 1,071 33.5 osh-cpython
30 no-host configure.yash 1,758 940 817 33.1 osh-native
38 no-host configure.yash 1,749 969 782 33.4 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 39 22 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 0 3 6.4 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,394 0 0 0 8 0 41 3 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,856 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,452 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,384 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 102,970 0 0 0 8 0 1,966 141 bash
9 no-host bin-true 49,408 0 0 0 8 0 2,961 73 dash
17 no-host bin-true 838,078 0 0 0 8 0 1,986 660 osh-cpython
25 no-host bin-true 137,292 0 0 0 16 0 1,982 172 osh-native
33 no-host bin-true 138,292 0 0 0 16 0 1,972 166 osh-native-souffle
2 no-host configure.cpython 1,622,828 0 0 0 25,272 0 14,028 1,169 bash
10 no-host configure.cpython 1,638,186 0 0 0 25,272 0 14,074 1,256 dash
18 no-host configure.cpython 5,948,162 0 0 0 25,272 0 12,876 1,198 osh-cpython
26 no-host configure.cpython 1,800,508 0 0 0 25,280 0 12,853 1,223 osh-native
34 no-host configure.cpython 1,793,486 1 0 0 25,280 0 12,847 1,166 osh-native-souffle
4 no-host configure.ocaml 298,605 0 0 0 4,432 0 2,012 209 bash
12 no-host configure.ocaml 280,524 0 0 0 4,432 0 2,105 192 dash
20 no-host configure.ocaml 556,395 0 0 0 4,432 0 1,912 202 osh-cpython
28 no-host configure.ocaml 316,958 0 0 0 4,440 0 1,998 232 osh-native
36 no-host configure.ocaml 316,316 0 0 0 4,440 0 1,999 207 osh-native-souffle
5 no-host configure.tcc 5,228 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 51 3 dash
21 no-host configure.tcc 23,753 0 0 0 88 0 53 8 osh-cpython
29 no-host configure.tcc 5,924 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,905 0 0 0 96 0 47 7 osh-native-souffle
3 no-host configure.util-linux 1,532,892 1 0 0 35,944 0 18,901 1,155 bash
11 no-host configure.util-linux 1,697,753 0 0 0 35,936 0 17,031 1,327 dash
19 no-host configure.util-linux 4,956,034 5 0 0 35,944 0 17,532 1,161 osh-cpython
27 no-host configure.util-linux 1,723,285 1 0 0 35,944 0 17,526 1,113 osh-native
35 no-host configure.util-linux 1,703,150 4 0 0 35,944 0 17,508 1,212 osh-native-souffle
6 no-host configure.yash 173,865 0 0 0 3,616 0 877 178 bash
14 no-host configure.yash 159,546 0 0 0 3,624 0 1,002 131 dash
22 no-host configure.yash 315,518 0 0 0 3,616 0 858 191 osh-cpython
30 no-host configure.yash 179,404 0 0 0 3,624 0 853 147 osh-native
38 no-host configure.yash 178,978 0 0 0 3,624 0 860 128 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,877 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 0 2 osh-native
32 no-host hello-world 380 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ce7e806c
dash dash-cea41b3e
osh-cpython osh-3ee31f57
osh-native osh-6e46176f
osh-native-souffle osh-98a6d97a
host label host id
no-host no-host-2411472