Skip to content

Add gor test-server option#123

Open
bragnarsson wants to merge 4 commits into
mainfrom
add-test-server
Open

Add gor test-server option#123
bragnarsson wants to merge 4 commits into
mainfrom
add-test-server

Conversation

@bragnarsson

@bragnarsson bragnarsson commented Jun 8, 2026

Copy link
Copy Markdown

When running multiple gor queries in sequence, e.g. 30 queries that each complete in a second, the startup time of gorpipe starts to be significant. This PR adds a gor test-server subcommand that runs gorpipe as a server, e.g.

gor test-server --port 9000 --cachedir=tmp3 --config=config/gor_config.txt
GOR test server listening on port 9000

curl -X POST http://localhost:9000/query -d "gorrow chr1,50000|calc x refbases(chrom,pos,pos+10)"
chrom pos x
chr1 50000 TAAACAGGTTA

In one actual example a pytest completes in 9 seconds with gor test-server but takes 59 seconds when starting gorpipe for each query.

NOTE: this was done by claude ai with a bit of guidance and feedback from testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant