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 18 9 476 22 21 25.94 1.21
bin-true no-host 649 525 2,321 785 778 3.58 1.21
configure.cpython no-host 14,854 14,983 29,143 15,008 15,145 1.96 1.01
configure.ocaml no-host 3,795 3,724 4,654 3,848 3,816 1.23 1.01
configure.tcc no-host 47 40 215 48 50 4.56 1.01
configure.util-linux no-host 13,817 14,570 31,989 14,091 14,056 2.32 1.02
configure.yash no-host 1,812 1,743 2,494 1,821 1,818 1.38 1.00
hello-world no-host 1 1 58 3 3 44.58 2.12

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,511 1,081 24,447 3,213 3,114 9.74 1.28
bin-true no-host 107,308 65,389 791,713 128,162 123,284 7.38 1.19
configure.cpython no-host 2,000,797 2,020,767 6,116,351 2,020,569 2,001,142 3.06 1.01
configure.ocaml no-host 373,224 353,650 618,296 377,312 376,459 1.66 1.01
configure.tcc no-host 6,094 5,010 24,013 6,489 6,434 3.94 1.06
configure.util-linux no-host 1,915,241 2,065,741 5,368,053 1,823,440 1,808,933 2.80 0.95
configure.yash no-host 233,895 221,675 368,087 235,563 235,204 1.57 1.01
hello-world no-host 147 78 4,007 348 338 27.26 2.37

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.9 9.2 8.7 5.29 2.12
bin-true no-host 3.0 1.4 18.7 8.0 7.7 6.20 2.65
configure.cpython no-host 29.3 29.1 29.0 29.2 29.3 0.99 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.5 22.4 1.00 0.99
configure.tcc no-host 19.6 19.7 19.6 19.5 19.7 1.00 1.00
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.4 1.00 1.00
configure.yash no-host 26.5 26.5 26.3 26.3 26.5 0.99 0.99
hello-world no-host 2.8 1.6 18.4 6.4 5.9 6.69 2.33

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.4 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 785 1 2 2.6 8.0 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 15,008 1 73 15.2 29.2 1,785,027 49,179 25,898 91,515 886,574 806,938 25,736 62 50,000 0
configure.util-linux no-host 14,091 3 70 21.6 30.3 2,709,226 56,216 66,561 114,377 1,295,038 1,299,811 32,241 42 133,122 1
configure.ocaml no-host 3,848 1 2 2.7 22.5 149,879 12,467 6,510 7,749 70,874 71,256 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.5 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,821 1 2 2.6 26.3 139,886 8,047 6,702 6,399 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,340 64,422 42,627 4,546 54,461 57,333 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,870 1,236 2 0 50,000 0
bin-true no-host 778 1 2 2.6 7.7 156,776 15,411 2,898 8,755 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 15,145 1 72 15.2 29.3 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 14,056 3 70 21.6 30.4 2,709,226 56,191 66,554 114,379 1,295,038 1,299,809 32,241 42 133,108 1
configure.ocaml no-host 3,816 1 2 2.7 22.4 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.7 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,818 1 2 2.6 26.5 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,339 64,417 42,622 4,547 54,461 57,331 277 3 85,244 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 18 10 9 4.3 bash
15 no-host abuild-print-help 9 2 7 3.4 dash
23 no-host abuild-print-help 476 422 58 22.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.2 osh-native
39 no-host abuild-print-help 21 12 9 8.7 osh-native-souffle
1 no-host bin-true 649 300 385 3.0 bash
9 no-host bin-true 525 271 263 1.4 dash
17 no-host bin-true 2,321 808 1,776 18.7 osh-cpython
25 no-host bin-true 785 294 508 8.0 osh-native
33 no-host bin-true 778 292 504 7.7 osh-native-souffle
2 no-host configure.cpython 14,854 6,801 8,475 29.3 bash
10 no-host configure.cpython 14,983 6,909 8,505 29.1 dash
18 no-host configure.cpython 29,143 14,763 16,318 29.0 osh-cpython
26 no-host configure.cpython 15,008 6,686 8,624 29.2 osh-native
34 no-host configure.cpython 15,145 6,713 8,553 29.3 osh-native-souffle
4 no-host configure.ocaml 3,795 1,347 1,488 22.6 bash
12 no-host configure.ocaml 3,724 1,364 1,382 22.6 dash
20 no-host configure.ocaml 4,654 1,888 1,987 22.6 osh-cpython
28 no-host configure.ocaml 3,848 1,358 1,532 22.5 osh-native
36 no-host configure.ocaml 3,816 1,318 1,535 22.4 osh-native-souffle
5 no-host configure.tcc 47 25 23 19.6 bash
13 no-host configure.tcc 40 19 22 19.7 dash
21 no-host configure.tcc 215 152 67 19.6 osh-cpython
29 no-host configure.tcc 48 22 26 19.5 osh-native
37 no-host configure.tcc 50 21 29 19.7 osh-native-souffle
3 no-host configure.util-linux 13,817 5,940 8,379 30.3 bash
11 no-host configure.util-linux 14,570 6,103 8,996 30.2 dash
19 no-host configure.util-linux 31,989 18,468 14,657 30.3 osh-cpython
27 no-host configure.util-linux 14,091 5,719 8,613 30.3 osh-native
35 no-host configure.util-linux 14,056 5,748 8,546 30.4 osh-native-souffle
6 no-host configure.yash 1,812 892 930 26.5 bash
14 no-host configure.yash 1,743 925 823 26.5 dash
22 no-host configure.yash 2,494 1,390 1,150 26.3 osh-cpython
30 no-host configure.yash 1,821 903 923 26.3 osh-native
38 no-host configure.yash 1,818 899 925 26.5 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 58 37 21 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 2 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,511 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,081 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,447 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,114 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,308 0 0 0 8 0 1,992 202 bash
9 no-host bin-true 65,389 0 0 0 8 0 1,986 117 dash
17 no-host bin-true 791,713 0 0 0 8 0 1,997 729 osh-cpython
25 no-host bin-true 128,162 0 0 0 16 0 1,986 188 osh-native
33 no-host bin-true 123,284 0 0 0 16 0 1,982 172 osh-native-souffle
2 no-host configure.cpython 2,000,797 0 0 0 32,928 0 14,327 1,247 bash
10 no-host configure.cpython 2,020,767 0 0 0 32,992 0 14,384 1,185 dash
18 no-host configure.cpython 6,116,351 0 0 0 27,512 0 13,101 1,327 osh-cpython
26 no-host configure.cpython 2,020,569 0 0 0 27,520 0 13,052 1,260 osh-native
34 no-host configure.cpython 2,001,142 0 0 0 27,520 0 13,115 1,087 osh-native-souffle
4 no-host configure.ocaml 373,224 0 0 0 5,120 0 1,952 183 bash
12 no-host configure.ocaml 353,650 0 0 0 5,112 0 1,940 168 dash
20 no-host configure.ocaml 618,296 0 0 0 5,112 0 1,852 186 osh-cpython
28 no-host configure.ocaml 377,312 0 0 0 5,120 0 1,921 198 osh-native
36 no-host configure.ocaml 376,459 0 0 0 5,120 0 1,936 252 osh-native-souffle
5 no-host configure.tcc 6,094 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,010 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 24,013 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 6,489 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,434 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,915,241 3 0 0 42,400 0 18,517 1,232 bash
11 no-host configure.util-linux 2,065,741 0 0 0 42,584 0 17,422 1,376 dash
19 no-host configure.util-linux 5,368,053 12 0 0 39,112 0 17,033 1,341 osh-cpython
27 no-host configure.util-linux 1,823,440 0 0 0 39,128 0 17,150 1,227 osh-native
35 no-host configure.util-linux 1,808,933 1 0 0 39,136 0 17,026 1,165 osh-native-souffle
6 no-host configure.yash 233,895 0 0 0 4,120 0 867 93 bash
14 no-host configure.yash 221,675 0 0 0 3,720 0 867 98 dash
22 no-host configure.yash 368,087 0 0 0 3,728 0 854 104 osh-cpython
30 no-host configure.yash 235,563 0 0 0 3,736 0 850 99 osh-native
38 no-host configure.yash 235,204 0 0 0 3,736 0 852 91 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,007 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-82709ab7
dash dash-0ebcf347
osh-cpython osh-fb790976
osh-native osh-7a66a06c
osh-native-souffle osh-4d75bce4
host label host id
no-host no-host-20fc69f9