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 521 22 22 32.82 1.41
bin-true no-host 643 468 2,510 815 825 3.90 1.27
configure.cpython no-host 14,434 14,222 30,139 15,183 15,284 2.09 1.05
configure.ocaml no-host 3,784 3,778 4,762 3,805 3,813 1.26 1.01
configure.tcc no-host 48 42 222 50 49 4.59 1.03
configure.util-linux no-host 13,001 13,630 33,053 14,020 14,145 2.54 1.08
configure.yash no-host 1,769 1,709 2,511 1,767 1,810 1.42 1.00
hello-world no-host 1 1 64 3 3 49.77 2.25

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,394 1,165 24,722 3,432 3,371 10.33 1.43
bin-true no-host 100,942 49,376 831,581 133,247 134,300 8.24 1.32
configure.cpython no-host 1,626,395 1,637,872 5,936,752 1,806,100 1,781,535 3.65 1.11
configure.ocaml no-host 298,742 280,563 555,041 316,492 315,449 1.86 1.06
configure.tcc no-host 5,246 4,215 23,691 5,987 5,857 4.52 1.14
configure.util-linux no-host 1,531,635 1,692,767 4,960,091 1,724,801 1,706,003 3.24 1.13
configure.yash no-host 173,465 159,479 315,055 179,415 179,247 1.82 1.03
hello-world no-host 154 85 3,887 383 379 25.24 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.3 4.67 2.03
bin-true no-host 3.1 1.7 18.2 8.7 8.5 5.79 2.75
configure.cpython no-host 34.5 34.3 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.6 28.7 28.8 1.00 1.00
configure.tcc no-host 26.0 26.3 26.1 26.2 26.2 1.00 1.01
configure.util-linux no-host 40.0 39.5 39.6 39.9 39.7 0.99 1.00
configure.yash no-host 33.3 33.4 33.2 33.4 33.6 1.00 1.00
hello-world no-host 3.1 1.4 18.1 6.8 6.6 5.74 2.17

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.8 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 815 1 2 2.6 8.7 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 15,183 1 71 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 14,020 3 62 21.4 39.9 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,805 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 50 0 0 1.3 26.2 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,767 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.6 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.5 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 15,284 1 66 15.2 34.5 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,145 3 62 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,813 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.2 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,810 1 2 2.6 33.6 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.3 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 14 3 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 521 469 55 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 9.8 osh-native
39 no-host abuild-print-help 22 10 13 9.3 osh-native-souffle
1 no-host bin-true 643 324 359 3.1 bash
9 no-host bin-true 468 282 192 1.7 dash
17 no-host bin-true 2,510 934 1,846 18.2 osh-cpython
25 no-host bin-true 815 306 527 8.7 osh-native
33 no-host bin-true 825 298 545 8.5 osh-native-souffle
2 no-host configure.cpython 14,434 7,752 7,086 34.5 bash
10 no-host configure.cpython 14,222 7,656 6,970 34.3 dash
18 no-host configure.cpython 30,139 16,556 15,577 34.5 osh-cpython
26 no-host configure.cpython 15,183 7,511 7,991 34.5 osh-native
34 no-host configure.cpython 15,284 7,586 7,844 34.5 osh-native-souffle
4 no-host configure.ocaml 3,784 1,509 1,315 28.7 bash
12 no-host configure.ocaml 3,778 1,504 1,300 28.8 dash
20 no-host configure.ocaml 4,762 2,124 1,865 28.6 osh-cpython
28 no-host configure.ocaml 3,805 1,481 1,362 28.7 osh-native
36 no-host configure.ocaml 3,813 1,528 1,325 28.8 osh-native-souffle
5 no-host configure.tcc 48 28 21 26.0 bash
13 no-host configure.tcc 42 28 15 26.3 dash
21 no-host configure.tcc 222 164 62 26.1 osh-cpython
29 no-host configure.tcc 50 25 26 26.2 osh-native
37 no-host configure.tcc 49 25 25 26.2 osh-native-souffle
3 no-host configure.util-linux 13,001 6,697 6,779 40.0 bash
11 no-host configure.util-linux 13,630 6,477 7,652 39.5 dash
19 no-host configure.util-linux 33,053 20,592 13,559 39.6 osh-cpython
27 no-host configure.util-linux 14,020 6,340 7,930 39.9 osh-native
35 no-host configure.util-linux 14,145 6,404 7,817 39.7 osh-native-souffle
6 no-host configure.yash 1,769 966 811 33.3 bash
14 no-host configure.yash 1,709 929 781 33.4 dash
22 no-host configure.yash 2,511 1,462 1,093 33.2 osh-cpython
30 no-host configure.yash 1,767 969 798 33.4 osh-native
38 no-host configure.yash 1,810 971 842 33.6 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 64 41 24 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 1 1 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,394 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,165 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,722 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,432 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,371 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,942 0 0 0 8 0 1,984 117 bash
9 no-host bin-true 49,376 0 0 0 8 0 2,938 83 dash
17 no-host bin-true 831,581 0 0 0 8 0 1,977 262 osh-cpython
25 no-host bin-true 133,247 0 0 0 16 0 1,981 66 osh-native
33 no-host bin-true 134,300 0 0 0 16 0 1,971 104 osh-native-souffle
2 no-host configure.cpython 1,626,395 0 0 0 25,272 0 14,080 1,233 bash
10 no-host configure.cpython 1,637,872 0 0 0 25,272 0 14,081 1,199 dash
18 no-host configure.cpython 5,936,752 0 0 0 25,272 0 12,880 1,080 osh-cpython
26 no-host configure.cpython 1,806,100 0 0 0 25,280 0 12,847 1,104 osh-native
34 no-host configure.cpython 1,781,535 0 0 0 25,280 0 12,840 1,141 osh-native-souffle
4 no-host configure.ocaml 298,742 0 0 0 4,432 0 2,005 211 bash
12 no-host configure.ocaml 280,563 0 0 0 4,432 0 2,096 216 dash
20 no-host configure.ocaml 555,041 0 0 0 4,432 0 1,918 199 osh-cpython
28 no-host configure.ocaml 316,492 0 0 0 4,440 0 1,992 199 osh-native
36 no-host configure.ocaml 315,449 0 0 0 4,440 0 1,997 222 osh-native-souffle
5 no-host configure.tcc 5,246 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,691 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,987 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,857 0 0 0 96 0 46 1 osh-native-souffle
3 no-host configure.util-linux 1,531,635 1 0 0 35,944 0 18,901 1,230 bash
11 no-host configure.util-linux 1,692,767 2 0 0 35,936 0 17,088 1,379 dash
19 no-host configure.util-linux 4,960,091 6 0 0 35,960 0 17,514 1,202 osh-cpython
27 no-host configure.util-linux 1,724,801 3 0 0 35,944 0 17,467 1,024 osh-native
35 no-host configure.util-linux 1,706,003 0 0 0 35,944 0 17,461 1,030 osh-native-souffle
6 no-host configure.yash 173,465 0 0 0 3,616 0 875 134 bash
14 no-host configure.yash 159,479 0 0 0 3,616 0 998 141 dash
22 no-host configure.yash 315,055 0 0 0 3,616 0 861 129 osh-cpython
30 no-host configure.yash 179,415 0 0 0 3,624 0 859 135 osh-native
38 no-host configure.yash 179,247 0 0 0 3,624 0 854 125 osh-native-souffle
0 no-host hello-world 154 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,887 0 0 0 8 0 7 0 osh-cpython
24 no-host hello-world 383 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-bce42594
dash dash-cea41b3e
osh-cpython osh-bdf7bf5b
osh-native osh-1946c69a
osh-native-souffle osh-7157a7fe
host label host id
no-host no-host-2411472