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 9 469 21 21 25.31 1.15
bin-true no-host 656 529 2,317 788 789 3.53 1.20
configure.cpython no-host 14,470 14,494 28,220 14,692 14,829 1.95 1.02
configure.ocaml no-host 3,713 3,647 4,559 3,718 3,725 1.23 1.00
configure.tcc no-host 46 40 201 47 47 4.36 1.02
configure.util-linux no-host 13,438 14,479 31,007 13,923 13,802 2.31 1.04
configure.yash no-host 1,757 1,725 2,429 1,772 1,768 1.38 1.01
hello-world no-host 1 1 58 3 3 40.49 1.90

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,507 1,096 23,936 3,178 3,105 9.55 1.27
bin-true no-host 106,330 66,504 777,049 126,151 125,216 7.31 1.19
configure.cpython no-host 1,999,703 2,019,729 6,051,148 1,997,558 1,990,774 3.03 1.00
configure.ocaml no-host 373,189 354,363 610,814 375,631 375,672 1.64 1.01
configure.tcc no-host 6,082 5,011 23,788 6,501 6,423 3.91 1.07
configure.util-linux no-host 1,900,686 2,065,082 5,235,349 1,802,330 1,796,647 2.75 0.95
configure.yash no-host 232,636 221,757 367,109 235,634 234,244 1.58 1.01
hello-world no-host 143 79 3,989 344 338 27.90 2.41

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.3 3.4 22.7 9.2 8.5 5.25 2.12
bin-true no-host 3.0 1.4 18.4 8.1 7.7 6.10 2.70
configure.cpython no-host 29.2 29.2 29.3 29.3 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.4 19.7 19.7 19.7 1.01 1.01
configure.util-linux no-host 30.3 30.2 30.2 30.1 30.3 0.99 0.99
configure.yash no-host 26.4 26.4 26.3 26.3 26.3 1.00 1.00
hello-world no-host 2.8 1.6 18.3 6.2 5.9 6.64 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,789 3,789 0 695 1,861 1,233 2 0 50,000 0
bin-true no-host 788 1 2 2.6 8.1 153,753 12,329 2,894 8,744 76,325 68,684 3,008 3 50,000 0
configure.cpython no-host 14,692 1 64 14.9 29.3 1,767,675 49,060 28,519 85,428 875,384 806,863 25,736 60 50,000 0
configure.util-linux no-host 13,923 3 62 21.2 30.1 2,698,991 29,940 65,718 108,700 1,288,281 1,302,010 32,241 41 131,436 1
configure.ocaml no-host 3,718 1 2 2.6 22.6 149,553 11,119 5,214 7,509 70,616 71,428 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,519 14,608 14,412 271 0 50,000 0
configure.yash no-host 1,772 1 2 2.5 26.3 139,269 8,031 6,693 5,990 67,845 65,434 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,299 64,410 42,620 4,533 54,439 57,327 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 696 1,861 1,231 2 0 50,000 0
bin-true no-host 789 1 2 2.6 7.7 153,752 12,118 2,832 8,745 76,325 68,682 3,008 3 50,000 0
configure.cpython no-host 14,829 1 67 14.9 29.1 1,767,674 37,983 24,932 85,429 875,384 806,861 25,736 60 50,000 0
configure.util-linux no-host 13,802 3 62 21.2 30.3 2,698,991 29,878 65,656 108,702 1,288,281 1,302,008 32,241 41 131,312 1
configure.ocaml no-host 3,725 1 2 2.6 22.6 149,553 11,057 5,152 7,511 70,616 71,426 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,539 30,539 0 1,521 14,608 14,410 271 0 50,000 0
configure.yash no-host 1,768 1 2 2.5 26.3 139,269 7,969 6,631 5,992 67,845 65,432 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,298 64,348 42,558 4,534 54,439 57,325 277 3 85,116 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 9 10 4.3 bash
15 no-host abuild-print-help 9 5 4 3.4 dash
23 no-host abuild-print-help 469 413 59 22.7 osh-cpython
31 no-host abuild-print-help 21 14 8 9.2 osh-native
39 no-host abuild-print-help 21 11 10 8.5 osh-native-souffle
1 no-host bin-true 656 292 397 3.0 bash
9 no-host bin-true 529 273 268 1.4 dash
17 no-host bin-true 2,317 810 1,767 18.4 osh-cpython
25 no-host bin-true 788 295 509 8.1 osh-native
33 no-host bin-true 789 299 506 7.7 osh-native-souffle
2 no-host configure.cpython 14,470 6,562 8,326 29.2 bash
10 no-host configure.cpython 14,494 6,577 8,348 29.2 dash
18 no-host configure.cpython 28,220 14,056 16,054 29.3 osh-cpython
26 no-host configure.cpython 14,692 6,528 8,445 29.3 osh-native
34 no-host configure.cpython 14,829 6,530 8,579 29.1 osh-native-souffle
4 no-host configure.ocaml 3,713 1,280 1,472 22.6 bash
12 no-host configure.ocaml 3,647 1,244 1,426 22.6 dash
20 no-host configure.ocaml 4,559 1,851 1,922 22.6 osh-cpython
28 no-host configure.ocaml 3,718 1,330 1,430 22.6 osh-native
36 no-host configure.ocaml 3,725 1,284 1,477 22.6 osh-native-souffle
5 no-host configure.tcc 46 26 21 19.6 bash
13 no-host configure.tcc 40 17 24 19.4 dash
21 no-host configure.tcc 201 131 74 19.7 osh-cpython
29 no-host configure.tcc 47 24 24 19.7 osh-native
37 no-host configure.tcc 47 28 19 19.7 osh-native-souffle
3 no-host configure.util-linux 13,438 5,719 8,215 30.3 bash
11 no-host configure.util-linux 14,479 5,877 9,129 30.2 dash
19 no-host configure.util-linux 31,007 17,638 14,466 30.2 osh-cpython
27 no-host configure.util-linux 13,923 5,612 8,535 30.1 osh-native
35 no-host configure.util-linux 13,802 5,443 8,579 30.3 osh-native-souffle
6 no-host configure.yash 1,757 900 867 26.4 bash
14 no-host configure.yash 1,725 870 860 26.4 dash
22 no-host configure.yash 2,429 1,329 1,142 26.3 osh-cpython
30 no-host configure.yash 1,772 881 896 26.3 osh-native
38 no-host configure.yash 1,768 892 881 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 58 40 18 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.2 osh-native
32 no-host hello-world 3 1 2 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,507 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,936 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,178 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,105 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,330 0 0 0 8 0 1,990 163 bash
9 no-host bin-true 66,504 0 0 0 8 0 1,979 75 dash
17 no-host bin-true 777,049 0 0 0 8 0 1,985 486 osh-cpython
25 no-host bin-true 126,151 0 0 0 16 0 1,979 232 osh-native
33 no-host bin-true 125,216 0 0 0 16 0 1,982 255 osh-native-souffle
2 no-host configure.cpython 1,999,703 0 0 0 32,928 0 14,303 1,119 bash
10 no-host configure.cpython 2,019,729 0 0 0 32,992 0 14,356 1,384 dash
18 no-host configure.cpython 6,051,148 0 0 0 27,512 0 13,034 1,203 osh-cpython
26 no-host configure.cpython 1,997,558 0 0 0 27,520 0 13,048 1,098 osh-native
34 no-host configure.cpython 1,990,774 1 0 0 27,520 0 13,008 1,061 osh-native-souffle
4 no-host configure.ocaml 373,189 0 0 0 5,120 0 1,947 215 bash
12 no-host configure.ocaml 354,363 0 0 0 5,112 0 1,943 174 dash
20 no-host configure.ocaml 610,814 0 0 0 5,112 0 1,854 187 osh-cpython
28 no-host configure.ocaml 375,631 0 0 0 5,120 0 1,929 190 osh-native
36 no-host configure.ocaml 375,672 0 0 0 5,120 0 1,928 209 osh-native-souffle
5 no-host configure.tcc 6,082 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,011 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,788 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,501 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,423 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,900,686 0 0 0 42,400 0 18,441 1,288 bash
11 no-host configure.util-linux 2,065,082 0 0 0 42,584 0 17,295 1,481 dash
19 no-host configure.util-linux 5,235,349 4 0 0 39,136 0 17,008 1,371 osh-cpython
27 no-host configure.util-linux 1,802,330 0 0 0 39,120 0 16,941 1,257 osh-native
35 no-host configure.util-linux 1,796,647 0 0 0 39,136 0 16,986 1,321 osh-native-souffle
6 no-host configure.yash 232,636 0 0 0 4,120 0 867 116 bash
14 no-host configure.yash 221,757 0 0 0 3,720 0 870 86 dash
22 no-host configure.yash 367,109 0 0 0 3,728 0 854 113 osh-cpython
30 no-host configure.yash 235,634 0 0 0 3,736 0 849 94 osh-native
38 no-host configure.yash 234,244 0 0 0 3,736 0 849 97 osh-native-souffle
0 no-host hello-world 143 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,989 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-06472694
dash dash-0ebcf347
osh-cpython osh-fd35281f
osh-native osh-d8d48a44
osh-native-souffle osh-accfd615
host label host id
no-host no-host-e4839999