Project

General

Profile

Actions

Bug #6075

closed

apipie significantly slower than naive API calls

Added by Roger K about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Low
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

I'm writing some tooling around TheForeman at work and needed the ability to enumerate Hosts. originally, I was writing all the API calls myself using HTTPI, but I did not necessarily want to manage all the resource types, argument validation, results processing, etc. at the suggestion of Dominic, I tried out apipie-bindings. however, it seemed massively slower than writing naive HTTP calls using an HTTP library. initial testing indicated that apipie was 10x slower or worse.

thomasmckay suggested I produce some code samples and file a bug report here regarding this potential performance issue. the below repo contains a simple benchmark I developed. feel free to modify it and run your own tests or suggest improvements to the benchmarking methodology.

https://github.com/neoice/theforeman-apipie-bugreport

Actions

Also available in: Atom PDF