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 17 9 574 25 22 33.44 1.43
bin-true no-host 638 447 2,628 867 842 4.12 1.36
configure.cpython no-host 15,055 15,433 33,112 16,376 16,403 2.20 1.09
configure.ocaml no-host 3,899 3,954 5,129 4,028 4,011 1.32 1.03
configure.tcc no-host 51 45 242 53 55 4.69 1.02
configure.util-linux no-host 13,485 14,787 36,136 15,117 15,355 2.68 1.12
configure.yash no-host 1,859 1,821 2,757 1,944 1,895 1.48 1.05
hello-world no-host 1 1 68 3 3 49.81 2.40

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,412 1,168 24,892 3,480 3,291 10.32 1.44
bin-true no-host 101,924 49,424 831,712 136,241 134,254 8.16 1.34
configure.cpython no-host 1,618,040 1,637,233 6,002,080 1,803,671 1,789,998 3.71 1.11
configure.ocaml no-host 299,379 281,071 557,775 316,452 315,981 1.86 1.06
configure.tcc no-host 5,215 4,207 23,895 5,948 5,884 4.58 1.14
configure.util-linux no-host 1,534,138 1,698,960 5,008,077 1,718,917 1,706,916 3.26 1.12
configure.yash no-host 173,476 159,548 316,672 179,589 179,211 1.83 1.04
hello-world no-host 150 86 3,894 384 378 25.96 2.56

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.6 3.9 22.8 9.8 9.3 4.97 2.14
bin-true no-host 3.3 1.4 18.1 8.8 8.3 5.51 2.68
configure.cpython no-host 34.8 34.5 34.3 34.8 34.8 0.98 1.00
configure.ocaml no-host 28.7 28.6 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.7 39.5 39.5 39.7 39.5 0.99 1.00
configure.yash no-host 33.3 33.4 33.1 33.5 33.3 1.00 1.01
hello-world no-host 3.0 1.6 18.2 6.8 6.4 6.04 2.26

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,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 867 1 2 2.6 8.8 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 16,376 2 87 15.2 34.8 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 15,117 4 79 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 4,028 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 53 0 0 1.3 26.2 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,944 1 3 2.6 33.5 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 25 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 842 1 2 2.6 8.3 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 16,403 2 85 15.2 34.8 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 15,355 6 82 21.4 39.5 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 4,011 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 55 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,895 1 2 2.6 33.3 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 22 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 17 12 6 4.6 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 574 506 72 22.8 osh-cpython
31 no-host abuild-print-help 25 16 10 9.8 osh-native
39 no-host abuild-print-help 22 12 11 9.3 osh-native-souffle
1 no-host bin-true 638 324 352 3.3 bash
9 no-host bin-true 447 282 171 1.4 dash
17 no-host bin-true 2,628 955 1,979 18.1 osh-cpython
25 no-host bin-true 867 300 587 8.8 osh-native
33 no-host bin-true 842 298 561 8.3 osh-native-souffle
2 no-host configure.cpython 15,055 8,140 7,324 34.8 bash
10 no-host configure.cpython 15,433 8,319 7,544 34.5 dash
18 no-host configure.cpython 33,112 17,986 17,400 34.3 osh-cpython
26 no-host configure.cpython 16,376 8,101 8,612 34.8 osh-native
34 no-host configure.cpython 16,403 8,139 8,411 34.8 osh-native-souffle
4 no-host configure.ocaml 3,899 1,580 1,362 28.7 bash
12 no-host configure.ocaml 3,954 1,613 1,366 28.6 dash
20 no-host configure.ocaml 5,129 2,322 2,064 28.6 osh-cpython
28 no-host configure.ocaml 4,028 1,593 1,481 28.7 osh-native
36 no-host configure.ocaml 4,011 1,616 1,437 28.7 osh-native-souffle
5 no-host configure.tcc 51 26 26 26.2 bash
13 no-host configure.tcc 45 27 19 26.2 dash
21 no-host configure.tcc 242 172 74 26.3 osh-cpython
29 no-host configure.tcc 53 25 28 26.2 osh-native
37 no-host configure.tcc 55 32 23 26.2 osh-native-souffle
3 no-host configure.util-linux 13,485 6,969 7,007 39.7 bash
11 no-host configure.util-linux 14,787 7,122 8,207 39.5 dash
19 no-host configure.util-linux 36,136 22,304 15,102 39.5 osh-cpython
27 no-host configure.util-linux 15,117 6,854 8,517 39.7 osh-native
35 no-host configure.util-linux 15,355 6,973 8,482 39.5 osh-native-souffle
6 no-host configure.yash 1,859 1,048 819 33.3 bash
14 no-host configure.yash 1,821 1,033 788 33.4 dash
22 no-host configure.yash 2,757 1,601 1,206 33.1 osh-cpython
30 no-host configure.yash 1,944 1,056 890 33.5 osh-native
38 no-host configure.yash 1,895 1,020 876 33.3 osh-native-souffle
0 no-host hello-world 1 1 0 3.0 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 68 44 24 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.8 osh-native
32 no-host hello-world 3 2 1 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,412 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,892 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,480 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,291 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 101,924 0 0 0 8 0 1,977 80 bash
9 no-host bin-true 49,424 0 0 0 8 0 2,968 55 dash
17 no-host bin-true 831,712 0 0 0 8 0 1,997 156 osh-cpython
25 no-host bin-true 136,241 0 0 0 16 0 1,973 100 osh-native
33 no-host bin-true 134,254 0 0 0 16 0 1,972 103 osh-native-souffle
2 no-host configure.cpython 1,618,040 0 0 0 25,272 0 14,045 1,036 bash
10 no-host configure.cpython 1,637,233 0 0 0 25,272 0 14,113 1,075 dash
18 no-host configure.cpython 6,002,080 0 0 0 25,272 0 12,868 876 osh-cpython
26 no-host configure.cpython 1,803,671 0 0 0 25,280 0 12,861 1,042 osh-native
34 no-host configure.cpython 1,789,998 3 0 0 25,280 0 12,869 1,091 osh-native-souffle
4 no-host configure.ocaml 299,379 0 0 0 4,432 0 2,009 189 bash
12 no-host configure.ocaml 281,071 0 0 0 4,432 0 2,102 216 dash
20 no-host configure.ocaml 557,775 0 0 0 4,432 0 1,928 212 osh-cpython
28 no-host configure.ocaml 316,452 0 0 0 4,440 0 1,997 221 osh-native
36 no-host configure.ocaml 315,981 0 0 0 4,440 0 1,998 214 osh-native-souffle
5 no-host configure.tcc 5,215 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 51 4 dash
21 no-host configure.tcc 23,895 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,948 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,884 0 0 0 96 0 46 3 osh-native-souffle
3 no-host configure.util-linux 1,534,138 1 0 0 35,944 0 18,974 1,098 bash
11 no-host configure.util-linux 1,698,960 0 0 0 35,936 0 17,127 1,291 dash
19 no-host configure.util-linux 5,008,077 3 0 0 35,960 0 17,538 896 osh-cpython
27 no-host configure.util-linux 1,718,917 0 0 0 35,952 0 17,479 1,132 osh-native
35 no-host configure.util-linux 1,706,916 0 0 0 35,952 0 17,466 1,061 osh-native-souffle
6 no-host configure.yash 173,476 0 0 0 3,616 0 872 96 bash
14 no-host configure.yash 159,548 0 0 0 3,616 0 999 107 dash
22 no-host configure.yash 316,672 0 0 0 3,616 0 856 106 osh-cpython
30 no-host configure.yash 179,589 0 0 0 3,624 0 850 98 osh-native
38 no-host configure.yash 179,211 0 0 0 3,624 0 856 111 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,894 0 0 0 8 0 7 0 osh-cpython
24 no-host hello-world 384 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-acd7d958
dash dash-cea41b3e
osh-cpython osh-d89dbc28
osh-native osh-e316dad1
osh-native-souffle osh-54e1a483
host label host id
no-host no-host-2411472