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 537 22 20 34.39 1.38
bin-true no-host 612 437 2,443 801 801 3.99 1.31
configure.cpython no-host 14,109 14,056 29,765 14,724 14,688 2.11 1.04
configure.ocaml no-host 3,707 3,636 4,726 3,713 3,711 1.28 1.00
configure.tcc no-host 47 41 224 49 49 4.82 1.05
configure.util-linux no-host 12,722 13,441 32,926 13,532 13,755 2.59 1.06
configure.yash no-host 1,729 1,661 2,465 1,720 1,712 1.43 0.99
hello-world no-host 1 1 62 3 3 49.88 2.34

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,368 1,163 24,931 3,411 3,334 10.53 1.44
bin-true no-host 99,955 49,425 833,739 136,252 138,326 8.34 1.36
configure.cpython no-host 1,624,997 1,644,763 6,005,677 1,813,351 1,781,334 3.70 1.12
configure.ocaml no-host 298,753 280,576 557,581 316,449 316,053 1.87 1.06
configure.tcc no-host 5,229 4,214 23,874 5,935 5,869 4.57 1.14
configure.util-linux no-host 1,534,976 1,692,875 4,995,543 1,719,276 1,698,896 3.25 1.12
configure.yash no-host 173,223 159,574 316,770 179,429 178,640 1.83 1.04
hello-world no-host 153 84 3,889 386 378 25.42 2.52

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 4.1 22.8 9.7 9.3 4.83 2.06
bin-true no-host 3.3 1.4 18.2 9.0 8.4 5.55 2.76
configure.cpython no-host 34.5 34.4 34.4 34.3 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.1 26.3 26.0 26.2 1.01 1.00
configure.util-linux no-host 39.4 39.6 39.9 39.7 39.6 1.01 1.01
configure.yash no-host 33.5 33.3 33.3 33.3 33.1 0.99 0.99
hello-world no-host 3.3 1.6 18.1 6.9 6.4 5.51 2.12

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 801 1 2 2.6 9.0 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,724 1 68 15.2 34.3 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,532 3 60 21.4 39.7 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,713 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 49 0 0 1.3 26.0 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,720 1 2 2.6 33.3 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.7 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 801 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 14,688 1 65 15.2 34.4 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,755 3 60 21.4 39.6 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,711 1 2 2.7 28.7 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 49 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,712 1 2 2.6 33.1 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.3 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 8 9 4.7 bash
15 no-host abuild-print-help 9 4 6 4.1 dash
23 no-host abuild-print-help 537 477 64 22.8 osh-cpython
31 no-host abuild-print-help 22 14 8 9.7 osh-native
39 no-host abuild-print-help 20 10 11 9.3 osh-native-souffle
1 no-host bin-true 612 305 347 3.3 bash
9 no-host bin-true 437 275 167 1.4 dash
17 no-host bin-true 2,443 888 1,825 18.2 osh-cpython
25 no-host bin-true 801 293 524 9.0 osh-native
33 no-host bin-true 801 316 501 8.4 osh-native-souffle
2 no-host configure.cpython 14,109 7,570 6,920 34.5 bash
10 no-host configure.cpython 14,056 7,677 6,775 34.4 dash
18 no-host configure.cpython 29,765 16,183 15,582 34.4 osh-cpython
26 no-host configure.cpython 14,724 7,473 7,551 34.3 osh-native
34 no-host configure.cpython 14,688 7,388 7,435 34.4 osh-native-souffle
4 no-host configure.ocaml 3,707 1,479 1,267 28.7 bash
12 no-host configure.ocaml 3,636 1,444 1,214 28.7 dash
20 no-host configure.ocaml 4,726 2,151 1,800 28.7 osh-cpython
28 no-host configure.ocaml 3,713 1,441 1,312 28.7 osh-native
36 no-host configure.ocaml 3,711 1,434 1,312 28.7 osh-native-souffle
5 no-host configure.tcc 47 27 20 26.1 bash
13 no-host configure.tcc 41 24 17 26.1 dash
21 no-host configure.tcc 224 161 68 26.3 osh-cpython
29 no-host configure.tcc 49 27 22 26.0 osh-native
37 no-host configure.tcc 49 17 33 26.2 osh-native-souffle
3 no-host configure.util-linux 12,722 6,667 6,513 39.4 bash
11 no-host configure.util-linux 13,441 6,463 7,464 39.6 dash
19 no-host configure.util-linux 32,926 20,591 13,447 39.9 osh-cpython
27 no-host configure.util-linux 13,532 6,308 7,453 39.7 osh-native
35 no-host configure.util-linux 13,755 6,254 7,576 39.6 osh-native-souffle
6 no-host configure.yash 1,729 990 747 33.5 bash
14 no-host configure.yash 1,661 950 713 33.3 dash
22 no-host configure.yash 2,465 1,446 1,061 33.3 osh-cpython
30 no-host configure.yash 1,720 952 771 33.3 osh-native
38 no-host configure.yash 1,712 950 765 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 62 42 21 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.9 osh-native
32 no-host hello-world 3 3 0 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,368 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,931 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,411 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,334 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 99,955 0 0 0 8 0 1,991 63 bash
9 no-host bin-true 49,425 0 0 0 8 0 2,956 58 dash
17 no-host bin-true 833,739 0 0 0 8 0 1,992 162 osh-cpython
25 no-host bin-true 136,252 0 0 0 16 0 1,983 94 osh-native
33 no-host bin-true 138,326 0 0 0 16 0 1,975 79 osh-native-souffle
2 no-host configure.cpython 1,624,997 0 0 0 25,272 0 14,017 1,035 bash
10 no-host configure.cpython 1,644,763 0 0 0 25,272 0 14,059 1,027 dash
18 no-host configure.cpython 6,005,677 0 0 0 25,272 0 12,892 905 osh-cpython
26 no-host configure.cpython 1,813,351 0 0 0 25,280 0 12,875 1,107 osh-native
34 no-host configure.cpython 1,781,334 0 0 0 25,280 0 12,832 1,063 osh-native-souffle
4 no-host configure.ocaml 298,753 0 0 0 4,432 0 2,012 188 bash
12 no-host configure.ocaml 280,576 0 0 0 4,432 0 2,098 202 dash
20 no-host configure.ocaml 557,581 0 0 0 4,432 0 1,904 185 osh-cpython
28 no-host configure.ocaml 316,449 0 0 0 4,440 0 2,001 205 osh-native
36 no-host configure.ocaml 316,053 0 0 0 4,440 0 2,000 198 osh-native-souffle
5 no-host configure.tcc 5,229 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,874 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,935 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,869 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,534,976 0 0 0 35,944 0 18,915 1,130 bash
11 no-host configure.util-linux 1,692,875 1 0 0 35,936 0 17,027 1,199 dash
19 no-host configure.util-linux 4,995,543 1 0 0 35,960 0 17,520 871 osh-cpython
27 no-host configure.util-linux 1,719,276 0 0 0 35,944 0 17,504 1,151 osh-native
35 no-host configure.util-linux 1,698,896 1 0 0 35,944 0 17,435 1,166 osh-native-souffle
6 no-host configure.yash 173,223 0 0 0 3,616 0 877 99 bash
14 no-host configure.yash 159,574 0 0 0 3,616 0 996 96 dash
22 no-host configure.yash 316,770 1 0 0 3,616 0 862 184 osh-cpython
30 no-host configure.yash 179,429 0 0 0 3,624 0 857 94 osh-native
38 no-host configure.yash 178,640 0 0 0 3,624 0 859 98 osh-native-souffle
0 no-host hello-world 153 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,889 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6c6de0cc
dash dash-cea41b3e
osh-cpython osh-c1ad84d6
osh-native osh-50b877c5
osh-native-souffle osh-a692f96f
host label host id
no-host no-host-2411472