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 15 9 528 21 20 34.10 1.37
bin-true no-host 609 431 2,414 785 786 3.96 1.29
configure.cpython no-host 13,483 13,509 28,859 14,348 14,459 2.14 1.06
configure.ocaml no-host 3,615 3,547 4,558 3,650 3,654 1.26 1.01
configure.tcc no-host 45 41 220 48 48 4.85 1.07
configure.util-linux no-host 12,287 13,023 31,553 13,298 13,416 2.57 1.08
configure.yash no-host 1,654 1,600 2,365 1,683 1,683 1.43 1.02
hello-world no-host 1 1 60 3 3 51.02 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,385 1,160 24,883 3,449 3,343 10.43 1.45
bin-true no-host 102,917 49,387 834,063 133,260 133,237 8.10 1.29
configure.cpython no-host 1,622,493 1,633,532 5,958,403 1,809,259 1,785,671 3.67 1.12
configure.ocaml no-host 298,420 281,309 556,058 317,613 316,185 1.86 1.06
configure.tcc no-host 5,222 4,197 23,801 5,965 5,904 4.56 1.14
configure.util-linux no-host 1,539,650 1,696,905 4,960,884 1,715,320 1,710,885 3.22 1.11
configure.yash no-host 173,681 159,528 315,096 179,685 178,593 1.81 1.03
hello-world no-host 153 85 3,874 388 379 25.32 2.54

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.8 22.8 9.8 9.3 4.83 2.08
bin-true no-host 3.1 1.6 18.1 8.7 8.3 5.74 2.75
configure.cpython no-host 34.3 34.4 34.5 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.8 28.8 28.5 28.7 1.00 0.99
configure.tcc no-host 26.0 26.2 26.4 26.2 26.4 1.02 1.01
configure.util-linux no-host 39.9 39.5 39.6 39.7 39.8 0.99 1.00
configure.yash no-host 33.3 33.4 33.4 33.5 33.1 1.00 1.01
hello-world no-host 3.1 1.6 18.1 7.1 6.4 5.74 2.25

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 7.1 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 785 1 2 2.6 8.7 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,348 2 62 15.2 34.4 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,298 3 57 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,650 1 2 2.7 28.5 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 48 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,683 1 2 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 21 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 786 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 14,459 1 61 15.2 34.5 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,416 2 56 21.4 39.8 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,654 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 48 0 0 1.3 26.4 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,683 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 15 9 7 4.7 bash
15 no-host abuild-print-help 9 5 4 3.8 dash
23 no-host abuild-print-help 528 465 66 22.8 osh-cpython
31 no-host abuild-print-help 21 9 13 9.8 osh-native
39 no-host abuild-print-help 20 10 11 9.3 osh-native-souffle
1 no-host bin-true 609 311 336 3.1 bash
9 no-host bin-true 431 271 165 1.6 dash
17 no-host bin-true 2,414 909 1,762 18.1 osh-cpython
25 no-host bin-true 785 316 486 8.7 osh-native
33 no-host bin-true 786 302 502 8.3 osh-native-souffle
2 no-host configure.cpython 13,483 7,325 6,528 34.3 bash
10 no-host configure.cpython 13,509 7,367 6,517 34.4 dash
18 no-host configure.cpython 28,859 15,905 14,886 34.5 osh-cpython
26 no-host configure.cpython 14,348 7,335 7,291 34.4 osh-native
34 no-host configure.cpython 14,459 7,225 7,270 34.5 osh-native-souffle
4 no-host configure.ocaml 3,615 1,423 1,231 28.7 bash
12 no-host configure.ocaml 3,547 1,414 1,156 28.8 dash
20 no-host configure.ocaml 4,558 2,052 1,724 28.8 osh-cpython
28 no-host configure.ocaml 3,650 1,457 1,234 28.5 osh-native
36 no-host configure.ocaml 3,654 1,422 1,272 28.7 osh-native-souffle
5 no-host configure.tcc 45 32 14 26.0 bash
13 no-host configure.tcc 41 16 25 26.2 dash
21 no-host configure.tcc 220 152 72 26.4 osh-cpython
29 no-host configure.tcc 48 21 28 26.2 osh-native
37 no-host configure.tcc 48 22 27 26.4 osh-native-souffle
3 no-host configure.util-linux 12,287 6,409 6,328 39.9 bash
11 no-host configure.util-linux 13,023 6,304 7,199 39.5 dash
19 no-host configure.util-linux 31,553 19,817 12,796 39.6 osh-cpython
27 no-host configure.util-linux 13,298 6,105 7,414 39.7 osh-native
35 no-host configure.util-linux 13,416 6,137 7,351 39.8 osh-native-souffle
6 no-host configure.yash 1,654 924 737 33.3 bash
14 no-host configure.yash 1,600 931 671 33.4 dash
22 no-host configure.yash 2,365 1,441 965 33.4 osh-cpython
30 no-host configure.yash 1,683 946 740 33.5 osh-native
38 no-host configure.yash 1,683 933 752 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 41 19 18.1 osh-cpython
24 no-host hello-world 3 0 3 7.1 osh-native
32 no-host hello-world 3 0 3 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,385 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,883 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,449 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,343 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 102,917 0 0 0 8 0 1,990 65 bash
9 no-host bin-true 49,387 0 0 0 8 0 2,977 42 dash
17 no-host bin-true 834,063 0 0 0 8 0 1,981 129 osh-cpython
25 no-host bin-true 133,260 0 0 0 16 0 1,986 72 osh-native
33 no-host bin-true 133,237 0 0 0 16 0 1,984 88 osh-native-souffle
2 no-host configure.cpython 1,622,493 0 0 0 25,272 0 14,028 1,024 bash
10 no-host configure.cpython 1,633,532 0 0 0 25,272 0 14,080 1,015 dash
18 no-host configure.cpython 5,958,403 0 0 0 25,272 0 12,872 853 osh-cpython
26 no-host configure.cpython 1,809,259 0 0 0 25,280 0 12,864 1,048 osh-native
34 no-host configure.cpython 1,785,671 0 0 0 25,280 0 12,856 1,075 osh-native-souffle
4 no-host configure.ocaml 298,420 0 0 0 4,432 0 2,003 210 bash
12 no-host configure.ocaml 281,309 0 0 0 4,432 0 2,101 197 dash
20 no-host configure.ocaml 556,058 1 0 0 4,432 0 1,911 200 osh-cpython
28 no-host configure.ocaml 317,613 0 0 0 4,440 0 1,989 203 osh-native
36 no-host configure.ocaml 316,185 0 0 0 4,440 0 2,000 197 osh-native-souffle
5 no-host configure.tcc 5,222 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,197 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,801 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,965 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,904 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,539,650 0 0 0 35,944 0 18,915 1,064 bash
11 no-host configure.util-linux 1,696,905 2 0 0 35,936 0 17,077 1,161 dash
19 no-host configure.util-linux 4,960,884 1 0 0 35,952 0 17,564 844 osh-cpython
27 no-host configure.util-linux 1,715,320 0 0 0 35,944 0 17,481 1,101 osh-native
35 no-host configure.util-linux 1,710,885 0 0 0 35,944 0 17,520 1,050 osh-native-souffle
6 no-host configure.yash 173,681 0 0 0 3,616 0 875 105 bash
14 no-host configure.yash 159,528 0 0 0 3,616 0 1,000 115 dash
22 no-host configure.yash 315,096 0 0 0 3,616 0 860 118 osh-cpython
30 no-host configure.yash 179,685 0 0 0 3,624 0 857 114 osh-native
38 no-host configure.yash 178,593 0 0 0 3,624 0 854 108 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,874 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c8b797aa
dash dash-cea41b3e
osh-cpython osh-5e8382b0
osh-native osh-e471666c
osh-native-souffle osh-7319073f
host label host id
no-host no-host-2411472