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 538 23 21 34.65 1.47
bin-true no-host 655 436 2,476 809 802 3.78 1.24
configure.cpython no-host 13,871 14,040 29,514 15,185 15,090 2.13 1.09
configure.ocaml no-host 3,675 3,657 4,720 3,816 3,775 1.28 1.04
configure.tcc no-host 46 41 226 51 49 4.89 1.10
configure.util-linux no-host 12,586 13,477 32,526 14,003 13,996 2.58 1.11
configure.yash no-host 1,741 1,672 2,444 1,759 1,758 1.40 1.01
hello-world no-host 1 1 66 3 3 55.82 2.47

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,382 1,161 24,771 3,460 3,352 10.40 1.45
bin-true no-host 101,958 49,376 829,528 137,293 134,266 8.14 1.35
configure.cpython no-host 1,621,902 1,642,214 5,955,484 1,815,708 1,789,048 3.67 1.12
configure.ocaml no-host 298,686 280,558 557,238 317,017 316,033 1.87 1.06
configure.tcc no-host 5,213 4,220 23,803 5,971 5,920 4.57 1.15
configure.util-linux no-host 1,534,161 1,694,224 4,977,715 1,721,253 1,704,731 3.24 1.12
configure.yash no-host 173,465 159,526 316,011 179,477 178,943 1.82 1.03
hello-world no-host 151 87 3,893 381 380 25.78 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 3.9 22.8 9.8 9.2 4.83 2.08
bin-true no-host 3.1 1.6 18.2 9.0 8.3 5.79 2.88
configure.cpython no-host 34.5 34.4 34.5 34.7 34.6 1.00 1.00
configure.ocaml no-host 28.5 28.5 28.7 28.8 28.6 1.00 1.01
configure.tcc no-host 26.1 26.1 26.3 26.2 26.2 1.01 1.00
configure.util-linux no-host 39.7 39.7 39.5 39.7 39.5 0.99 1.00
configure.yash no-host 33.4 33.4 33.1 33.2 33.4 0.99 1.00
hello-world no-host 3.1 1.6 18.1 6.9 6.6 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 809 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 15,185 1 72 15.2 34.7 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,003 3 65 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,816 1 2 2.7 28.8 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 51 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,759 1 2 2.6 33.2 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 23 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.6 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 802 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 15,090 1 68 15.2 34.6 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,996 3 62 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 3,775 1 2 2.7 28.6 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,758 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.2 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 11 5 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 538 480 62 22.8 osh-cpython
31 no-host abuild-print-help 23 12 12 9.8 osh-native
39 no-host abuild-print-help 21 12 10 9.2 osh-native-souffle
1 no-host bin-true 655 310 385 3.1 bash
9 no-host bin-true 436 270 170 1.6 dash
17 no-host bin-true 2,476 887 1,864 18.2 osh-cpython
25 no-host bin-true 809 318 509 9.0 osh-native
33 no-host bin-true 802 296 523 8.3 osh-native-souffle
2 no-host configure.cpython 13,871 7,525 6,726 34.5 bash
10 no-host configure.cpython 14,040 7,624 6,810 34.4 dash
18 no-host configure.cpython 29,514 16,237 15,256 34.5 osh-cpython
26 no-host configure.cpython 15,185 7,491 8,007 34.7 osh-native
34 no-host configure.cpython 15,090 7,431 7,774 34.6 osh-native-souffle
4 no-host configure.ocaml 3,675 1,466 1,249 28.5 bash
12 no-host configure.ocaml 3,657 1,456 1,223 28.5 dash
20 no-host configure.ocaml 4,720 2,142 1,804 28.7 osh-cpython
28 no-host configure.ocaml 3,816 1,502 1,357 28.8 osh-native
36 no-host configure.ocaml 3,775 1,475 1,341 28.6 osh-native-souffle
5 no-host configure.tcc 46 25 22 26.1 bash
13 no-host configure.tcc 41 18 24 26.1 dash
21 no-host configure.tcc 226 164 66 26.3 osh-cpython
29 no-host configure.tcc 51 22 29 26.2 osh-native
37 no-host configure.tcc 49 26 24 26.2 osh-native-souffle
3 no-host configure.util-linux 12,586 6,528 6,505 39.7 bash
11 no-host configure.util-linux 13,477 6,474 7,487 39.7 dash
19 no-host configure.util-linux 32,526 20,455 13,168 39.5 osh-cpython
27 no-host configure.util-linux 14,003 6,430 7,812 39.7 osh-native
35 no-host configure.util-linux 13,996 6,431 7,642 39.5 osh-native-souffle
6 no-host configure.yash 1,741 985 763 33.4 bash
14 no-host configure.yash 1,672 893 780 33.4 dash
22 no-host configure.yash 2,444 1,448 1,037 33.1 osh-cpython
30 no-host configure.yash 1,759 960 802 33.2 osh-native
38 no-host configure.yash 1,758 980 780 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 66 48 18 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.9 osh-native
32 no-host hello-world 3 1 2 6.6 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,382 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,161 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,771 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,460 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,352 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 101,958 0 0 0 8 0 1,980 59 bash
9 no-host bin-true 49,376 0 0 0 8 0 2,974 58 dash
17 no-host bin-true 829,528 0 0 0 8 0 1,986 141 osh-cpython
25 no-host bin-true 137,293 0 0 0 16 0 1,987 71 osh-native
33 no-host bin-true 134,266 0 0 0 16 0 1,975 94 osh-native-souffle
2 no-host configure.cpython 1,621,902 0 0 0 25,272 0 14,031 1,078 bash
10 no-host configure.cpython 1,642,214 0 0 0 25,272 0 14,092 1,128 dash
18 no-host configure.cpython 5,955,484 0 0 0 25,272 0 12,858 1,008 osh-cpython
26 no-host configure.cpython 1,815,708 0 0 0 25,280 0 12,824 979 osh-native
34 no-host configure.cpython 1,789,048 0 0 0 25,280 0 12,816 1,036 osh-native-souffle
4 no-host configure.ocaml 298,686 0 0 0 4,432 0 2,000 178 bash
12 no-host configure.ocaml 280,558 0 0 0 4,432 0 2,089 191 dash
20 no-host configure.ocaml 557,238 0 0 0 4,432 0 1,906 192 osh-cpython
28 no-host configure.ocaml 317,017 0 0 0 4,440 0 1,989 198 osh-native
36 no-host configure.ocaml 316,033 0 0 0 4,440 0 1,989 206 osh-native-souffle
5 no-host configure.tcc 5,213 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,220 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,803 0 0 0 88 0 52 7 osh-cpython
29 no-host configure.tcc 5,971 0 0 0 96 0 46 3 osh-native
37 no-host configure.tcc 5,920 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,534,161 2 0 0 35,944 0 18,899 1,113 bash
11 no-host configure.util-linux 1,694,224 0 0 0 35,936 0 17,052 1,286 dash
19 no-host configure.util-linux 4,977,715 2 0 0 35,944 0 17,541 896 osh-cpython
27 no-host configure.util-linux 1,721,253 0 0 0 35,952 0 17,527 1,116 osh-native
35 no-host configure.util-linux 1,704,731 0 0 0 35,952 0 17,493 1,016 osh-native-souffle
6 no-host configure.yash 173,465 0 0 0 3,616 0 874 110 bash
14 no-host configure.yash 159,526 0 0 0 3,616 0 993 88 dash
22 no-host configure.yash 316,011 0 0 0 3,616 0 857 114 osh-cpython
30 no-host configure.yash 179,477 0 0 0 3,624 0 853 109 osh-native
38 no-host configure.yash 178,943 0 0 0 3,624 0 858 102 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,893 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 381 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 380 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3c9e5d03
dash dash-cea41b3e
osh-cpython osh-9b63e5ae
osh-native osh-5dda407e
osh-native-souffle osh-c3655ac2
host label host id
no-host no-host-2411472