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 530 22 20 34.48 1.41
bin-true no-host 609 435 2,425 793 803 3.98 1.30
configure.cpython no-host 13,840 13,644 29,068 14,435 14,746 2.10 1.04
configure.ocaml no-host 3,656 3,585 4,584 3,691 3,692 1.25 1.01
configure.tcc no-host 45 41 220 48 48 4.85 1.06
configure.util-linux no-host 12,472 13,115 31,961 13,455 13,532 2.56 1.08
configure.yash no-host 1,715 1,628 2,412 1,691 1,703 1.41 0.99
hello-world no-host 1 1 60 3 3 49.61 2.39

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,404 1,150 24,900 3,472 3,335 10.36 1.44
bin-true no-host 100,930 49,394 830,746 135,269 135,292 8.23 1.34
configure.cpython no-host 1,621,738 1,640,108 6,010,146 1,801,752 1,785,379 3.71 1.11
configure.ocaml no-host 298,700 280,520 557,729 317,810 315,435 1.87 1.06
configure.tcc no-host 5,199 4,211 23,827 5,915 5,853 4.58 1.14
configure.util-linux no-host 1,538,082 1,695,816 5,004,715 1,722,989 1,712,738 3.25 1.12
configure.yash no-host 173,514 159,445 316,301 179,324 179,237 1.82 1.03
hello-world no-host 154 87 3,882 383 376 25.21 2.49

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.8 3.9 22.7 9.8 9.2 4.67 2.03
bin-true no-host 3.1 1.4 18.2 8.7 8.4 5.79 2.75
configure.cpython no-host 34.5 34.4 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.5 28.5 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.0 26.2 1.00 0.99
configure.util-linux no-host 39.6 39.5 39.6 39.5 39.7 1.00 1.00
configure.yash no-host 33.1 33.4 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.3 1.6 17.9 7.1 6.3 5.47 2.16

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 793 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,435 1 64 15.2 34.5 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,455 2 58 21.4 39.5 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,691 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.0 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,691 1 2 2.6 33.4 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 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.3 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 803 1 2 2.6 8.4 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,746 1 63 15.2 34.4 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,532 3 58 21.4 39.7 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,692 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 48 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,703 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 20 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 15 9 7 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 530 467 67 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.2 osh-native-souffle
1 no-host bin-true 609 309 337 3.1 bash
9 no-host bin-true 435 270 168 1.4 dash
17 no-host bin-true 2,425 832 1,859 18.2 osh-cpython
25 no-host bin-true 793 321 489 8.7 osh-native
33 no-host bin-true 803 305 513 8.4 osh-native-souffle
2 no-host configure.cpython 13,840 7,628 6,578 34.5 bash
10 no-host configure.cpython 13,644 7,506 6,522 34.4 dash
18 no-host configure.cpython 29,068 15,980 15,043 34.4 osh-cpython
26 no-host configure.cpython 14,435 7,267 7,465 34.5 osh-native
34 no-host configure.cpython 14,746 7,300 7,501 34.4 osh-native-souffle
4 no-host configure.ocaml 3,656 1,474 1,217 28.7 bash
12 no-host configure.ocaml 3,585 1,429 1,178 28.8 dash
20 no-host configure.ocaml 4,584 2,045 1,759 28.5 osh-cpython
28 no-host configure.ocaml 3,691 1,493 1,240 28.5 osh-native
36 no-host configure.ocaml 3,692 1,452 1,278 28.6 osh-native-souffle
5 no-host configure.tcc 45 19 27 26.2 bash
13 no-host configure.tcc 41 19 22 26.2 dash
21 no-host configure.tcc 220 156 67 26.2 osh-cpython
29 no-host configure.tcc 48 27 21 26.0 osh-native
37 no-host configure.tcc 48 26 23 26.2 osh-native-souffle
3 no-host configure.util-linux 12,472 6,558 6,364 39.6 bash
11 no-host configure.util-linux 13,115 6,333 7,260 39.5 dash
19 no-host configure.util-linux 31,961 20,124 12,924 39.6 osh-cpython
27 no-host configure.util-linux 13,455 6,303 7,377 39.5 osh-native
35 no-host configure.util-linux 13,532 6,196 7,407 39.7 osh-native-souffle
6 no-host configure.yash 1,715 963 761 33.1 bash
14 no-host configure.yash 1,628 906 723 33.4 dash
22 no-host configure.yash 2,412 1,444 1,011 33.4 osh-cpython
30 no-host configure.yash 1,691 944 750 33.4 osh-native
38 no-host configure.yash 1,703 931 774 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 39 21 17.9 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 1 2 6.3 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,404 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,900 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,472 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,335 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,930 0 0 0 8 0 1,986 63 bash
9 no-host bin-true 49,394 0 0 0 8 0 2,978 66 dash
17 no-host bin-true 830,746 0 0 0 8 0 1,992 140 osh-cpython
25 no-host bin-true 135,269 0 0 0 16 0 1,992 72 osh-native
33 no-host bin-true 135,292 0 0 0 16 0 1,975 108 osh-native-souffle
2 no-host configure.cpython 1,621,738 0 0 0 25,272 0 14,038 1,182 bash
10 no-host configure.cpython 1,640,108 0 0 0 25,272 0 14,064 1,059 dash
18 no-host configure.cpython 6,010,146 0 0 0 25,272 0 12,879 896 osh-cpython
26 no-host configure.cpython 1,801,752 0 0 0 25,280 0 12,835 1,111 osh-native
34 no-host configure.cpython 1,785,379 0 0 0 25,280 0 12,836 1,146 osh-native-souffle
4 no-host configure.ocaml 298,700 0 0 0 4,432 0 2,015 181 bash
12 no-host configure.ocaml 280,520 0 0 0 4,432 0 2,087 204 dash
20 no-host configure.ocaml 557,729 0 0 0 4,432 0 1,911 190 osh-cpython
28 no-host configure.ocaml 317,810 0 0 0 4,440 0 1,995 203 osh-native
36 no-host configure.ocaml 315,435 0 0 0 4,440 0 1,995 199 osh-native-souffle
5 no-host configure.tcc 5,199 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 53 2 dash
21 no-host configure.tcc 23,827 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,915 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,853 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,538,082 0 0 0 35,944 0 18,947 1,050 bash
11 no-host configure.util-linux 1,695,816 1 0 0 35,936 0 17,036 1,164 dash
19 no-host configure.util-linux 5,004,715 1 0 0 35,960 0 17,516 863 osh-cpython
27 no-host configure.util-linux 1,722,989 3 0 0 35,944 0 17,499 1,058 osh-native
35 no-host configure.util-linux 1,712,738 1 0 0 35,944 0 17,502 1,173 osh-native-souffle
6 no-host configure.yash 173,514 0 0 0 3,616 0 878 108 bash
14 no-host configure.yash 159,445 0 0 0 3,616 0 1,000 203 dash
22 no-host configure.yash 316,301 0 0 0 3,616 0 857 104 osh-cpython
30 no-host configure.yash 179,324 0 0 0 3,624 0 856 106 osh-native
38 no-host configure.yash 179,237 0 0 0 3,624 0 861 114 osh-native-souffle
0 no-host hello-world 154 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,882 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 383 0 0 0 16 0 0 0 osh-native
32 no-host hello-world 376 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2a04b54e
dash dash-cea41b3e
osh-cpython osh-acccca32
osh-native osh-68817c00
osh-native-souffle osh-259eb6f9
host label host id
no-host no-host-2411472