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 524 22 21 33.14 1.38
bin-true no-host 639 459 2,477 821 817 3.88 1.29
configure.cpython no-host 13,683 13,731 29,031 14,465 14,542 2.12 1.06
configure.ocaml no-host 3,642 3,595 4,598 3,698 3,705 1.26 1.02
configure.tcc no-host 46 41 220 49 49 4.75 1.06
configure.util-linux no-host 12,484 13,341 31,690 13,538 13,639 2.54 1.08
configure.yash no-host 1,679 1,631 2,394 1,712 1,709 1.43 1.02
hello-world no-host 1 1 60 3 3 48.88 2.38

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,158 24,737 3,475 3,376 10.38 1.46
bin-true no-host 102,893 49,410 828,592 137,263 135,264 8.05 1.33
configure.cpython no-host 1,630,478 1,634,361 5,953,184 1,814,154 1,801,680 3.65 1.11
configure.ocaml no-host 299,018 280,822 554,976 317,059 315,628 1.86 1.06
configure.tcc no-host 5,218 4,224 23,699 5,985 5,909 4.54 1.15
configure.util-linux no-host 1,533,123 1,702,096 4,961,388 1,720,926 1,710,042 3.24 1.12
configure.yash no-host 173,374 159,579 314,810 179,382 178,738 1.82 1.03
hello-world no-host 152 85 3,878 387 378 25.51 2.55

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.6 3.9 22.8 9.8 9.2 4.97 2.14
bin-true no-host 3.1 1.4 18.1 8.9 8.3 5.74 2.83
configure.cpython no-host 34.4 34.5 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.8 1.00 1.00
configure.tcc no-host 26.1 26.2 26.0 26.3 26.3 0.99 1.01
configure.util-linux no-host 39.7 39.6 39.5 39.7 39.7 0.99 1.00
configure.yash no-host 33.1 33.4 33.1 33.4 33.1 1.00 1.01
hello-world no-host 3.1 1.6 18.1 6.9 6.4 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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 821 1 2 2.6 8.9 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,465 1 64 15.2 34.5 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,538 3 59 21.4 39.7 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,698 1 2 2.7 28.7 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,712 1 2 2.6 33.4 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 817 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,542 1 62 15.2 34.4 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,639 3 56 21.4 39.7 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,705 1 2 2.7 28.8 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,709 1 2 2.6 33.1 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,366 64,433 42,634 4,563 54,471 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 7 9 4.6 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 524 458 70 22.8 osh-cpython
31 no-host abuild-print-help 22 13 9 9.8 osh-native
39 no-host abuild-print-help 21 9 13 9.2 osh-native-souffle
1 no-host bin-true 639 322 357 3.1 bash
9 no-host bin-true 459 285 180 1.4 dash
17 no-host bin-true 2,477 877 1,862 18.1 osh-cpython
25 no-host bin-true 821 310 528 8.9 osh-native
33 no-host bin-true 817 302 532 8.3 osh-native-souffle
2 no-host configure.cpython 13,683 7,379 6,685 34.4 bash
10 no-host configure.cpython 13,731 7,320 6,812 34.5 dash
18 no-host configure.cpython 29,031 15,773 15,188 34.4 osh-cpython
26 no-host configure.cpython 14,465 7,213 7,561 34.5 osh-native
34 no-host configure.cpython 14,542 7,215 7,510 34.4 osh-native-souffle
4 no-host configure.ocaml 3,642 1,431 1,244 28.6 bash
12 no-host configure.ocaml 3,595 1,406 1,213 28.7 dash
20 no-host configure.ocaml 4,598 2,067 1,752 28.7 osh-cpython
28 no-host configure.ocaml 3,698 1,469 1,270 28.7 osh-native
36 no-host configure.ocaml 3,705 1,407 1,338 28.8 osh-native-souffle
5 no-host configure.tcc 46 22 26 26.1 bash
13 no-host configure.tcc 41 22 20 26.2 dash
21 no-host configure.tcc 220 164 60 26.0 osh-cpython
29 no-host configure.tcc 49 20 30 26.3 osh-native
37 no-host configure.tcc 49 22 28 26.3 osh-native-souffle
3 no-host configure.util-linux 12,484 6,339 6,613 39.7 bash
11 no-host configure.util-linux 13,341 6,345 7,491 39.6 dash
19 no-host configure.util-linux 31,690 19,896 12,849 39.5 osh-cpython
27 no-host configure.util-linux 13,538 6,177 7,605 39.7 osh-native
35 no-host configure.util-linux 13,639 6,180 7,536 39.7 osh-native-souffle
6 no-host configure.yash 1,679 936 752 33.1 bash
14 no-host configure.yash 1,631 896 737 33.4 dash
22 no-host configure.yash 2,394 1,417 1,017 33.1 osh-cpython
30 no-host configure.yash 1,712 935 781 33.4 osh-native
38 no-host configure.yash 1,709 917 796 33.1 osh-native-souffle
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 60 44 16 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.9 osh-native
32 no-host hello-world 3 1 1 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,382 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,737 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,475 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,376 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 102,893 0 0 0 8 0 1,974 154 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,975 68 dash
17 no-host bin-true 828,592 0 0 0 8 0 1,984 152 osh-cpython
25 no-host bin-true 137,263 0 0 0 16 0 1,958 102 osh-native
33 no-host bin-true 135,264 0 0 0 16 0 1,966 151 osh-native-souffle
2 no-host configure.cpython 1,630,478 0 0 0 25,272 0 14,049 1,219 bash
10 no-host configure.cpython 1,634,361 1 0 0 25,272 0 14,088 1,389 dash
18 no-host configure.cpython 5,953,184 1 0 0 25,272 0 12,875 1,259 osh-cpython
26 no-host configure.cpython 1,814,154 0 0 0 25,280 0 12,924 1,182 osh-native
34 no-host configure.cpython 1,801,680 1 0 0 25,280 0 12,877 1,184 osh-native-souffle
4 no-host configure.ocaml 299,018 0 0 0 4,432 0 2,012 196 bash
12 no-host configure.ocaml 280,822 0 0 0 4,432 0 2,107 210 dash
20 no-host configure.ocaml 554,976 0 0 0 4,432 0 1,914 226 osh-cpython
28 no-host configure.ocaml 317,059 0 0 0 4,440 0 1,997 225 osh-native
36 no-host configure.ocaml 315,628 0 0 0 4,440 0 1,996 215 osh-native-souffle
5 no-host configure.tcc 5,218 0 0 0 80 0 48 4 bash
13 no-host configure.tcc 4,224 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,699 0 0 0 88 0 53 10 osh-cpython
29 no-host configure.tcc 5,985 0 0 0 96 0 46 3 osh-native
37 no-host configure.tcc 5,909 0 0 0 96 0 46 14 osh-native-souffle
3 no-host configure.util-linux 1,533,123 1 0 0 35,944 0 18,942 1,381 bash
11 no-host configure.util-linux 1,702,096 0 0 0 35,936 0 17,030 1,389 dash
19 no-host configure.util-linux 4,961,388 4 0 0 35,944 0 17,481 1,095 osh-cpython
27 no-host configure.util-linux 1,720,926 5 0 0 35,944 0 17,552 1,163 osh-native
35 no-host configure.util-linux 1,710,042 1 0 0 35,944 0 17,439 1,075 osh-native-souffle
6 no-host configure.yash 173,374 0 0 0 3,616 0 875 140 bash
14 no-host configure.yash 159,579 0 0 0 3,624 0 999 132 dash
22 no-host configure.yash 314,810 0 0 0 3,616 0 863 156 osh-cpython
30 no-host configure.yash 179,382 0 0 0 3,624 0 856 109 osh-native
38 no-host configure.yash 178,738 0 0 0 3,624 0 860 134 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 0 1 dash
16 no-host hello-world 3,878 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-597ac59b
dash dash-cea41b3e
osh-cpython osh-1a6834b0
osh-native osh-855bf6f8
osh-native-souffle osh-3332873b
host label host id
no-host no-host-2411472