summaryrefslogtreecommitdiff
path: root/benchmark/io_select.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/io_select.yml')
-rw-r--r--benchmark/io_select.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/benchmark/io_select.yml b/benchmark/io_select.yml
new file mode 100644
index 0000000..bcea6b9
--- /dev/null
+++ b/benchmark/io_select.yml
@@ -0,0 +1,12 @@
+prelude: |
+ # IO.select performance
+benchmark:
+ io_select: |
+
+ w = [ IO.pipe[1] ];
+
+ nr = 1000000
+ nr.times {
+ IO.select nil, w
+ }
+loop_count: 1